Home | History | Annotate | Download | only in packet

Lines Matching defs:version

8  * All rights reserved. Licensed under the Apache License, Version 2.0 (the "License");
26 * A Version IQ packet, which is used by XMPP clients to discover version information
29 * An example to discover the version of the server:
31 * // Request the version from the server.
32 * Version versionRequest = new Version();
45 * Version versionResult = (Version)result;
51 public class Version extends IQ {
54 private String version;
69 * invoked when parsing the XML and setting the property to a Version instance.
78 * Returns the specific version of the software. This property will always be
81 * @return the specific version of the software.
84 return version;
88 * Sets the specific version of the software. This message should only be
89 * invoked when parsing the XML and setting the property to a Version instance.
91 * @param version the specific version of the software.
93 public void setVersion(String version) {
94 this.version = version;
109 * invoked when parsing the XML and setting the property to a Version instance.
119 buf.append("<query xmlns=\"jabber:iq:version\">");
123 if (version != null) {
124 buf.append("<version>").append(version).append("</version>");