Lines Matching full:version
11 * to you under the Apache License, Version 2.0 (the
39 * Represents a protocol version, as specified in RFC 2616.
42 * for the protocol name. It defines a protocol version "SIP/2.0".
46 * This class defines a protocol version as a combination of
47 * protocol name, major version number, and minor version number.
54 * @version $Revision: 609106 $
64 /** Major version number of the protocol */
67 /** Minor version number of the protocol */
72 * Create a protocol version designator.
75 * @param major the major version number of the protocol
76 * @param minor the minor version number of the protocol
85 ("Protocol major version number must not be negative."); in ProtocolVersion()
89 ("Protocol minor version number may not be negative"); in ProtocolVersion()
106 * Returns the major version number of the protocol.
108 * @return the major version number.
115 * Returns the minor version number of the HTTP protocol.
117 * @return the minor version number.
125 * Obtains a specific version of this protocol.
130 * if the version matches, and creates a new {@link ProtocolVersion}
133 * @param major the major version
134 * @param minor the minor version
136 * @return a protocol version with the same protocol name
137 * and the argument version
153 * @return the hashcode of this protocol version
161 * Checks equality of this protocol version with an object.
162 * The object is equal if it is a protocl version with the same
163 * protocol name, major version number, and minor version number.
170 * @return <code>true</code> if the argument is the same protocol version,
193 * @param that the protocol version to consider
204 * Compares this protocol version with another one.
209 * @param that the protocl version to compare with
212 * as this version is less than, equal to, or greater than
213 * the argument version.
222 ("Protocol version must not be null."); in compareToVersion()
239 * Tests if this protocol version is greater or equal to the given one.
241 * @param version the version against which to check this version
243 * @return <code>true</code> if this protocol version is
248 public final boolean greaterEquals(ProtocolVersion version) { in greaterEquals() argument
249 return isComparable(version) && (compareToVersion(version) >= 0); in greaterEquals()
254 * Tests if this protocol version is less or equal to the given one.
256 * @param version the version against which to check this version
258 * @return <code>true</code> if this protocol version is
263 public final boolean lessEquals(ProtocolVersion version) { in lessEquals() argument
264 return isComparable(version) && (compareToVersion(version) <= 0); in lessEquals()
269 * Converts this protocol version to a string.
271 * @return a protocol version string, like "HTTP/1.1"