|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.HttpVersion
Represents an HTTP version, as specified in RFC 2616.
Field Summary | |
static HttpVersion |
HTTP_0_9
HTTP protocol version 0.9 |
static HttpVersion |
HTTP_1_0
HTTP protocol version 1.0 |
static HttpVersion |
HTTP_1_1
HTTP protocol version 1.1 |
Constructor Summary | |
HttpVersion(int major,
int minor)
Create an HTTP protocol version designator. |
Method Summary | |
int |
compareTo(HttpVersion anotherVer)
Compares this HTTP protocol version with another one. |
int |
compareTo(java.lang.Object o)
|
boolean |
equals(HttpVersion version)
Test if the HTTP protocol version is equal to the given number. |
boolean |
equals(java.lang.Object obj)
|
int |
getMajor()
Returns the major version number of the HTTP protocol. |
int |
getMinor()
Returns the minor version number of the HTTP protocol. |
boolean |
greaterEquals(HttpVersion version)
Test if the HTTP protocol version is greater or equal to the given number. |
int |
hashCode()
|
boolean |
lessEquals(HttpVersion version)
Test if the HTTP protocol version is less or equal to the given number. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final HttpVersion HTTP_0_9
public static final HttpVersion HTTP_1_0
public static final HttpVersion HTTP_1_1
Constructor Detail |
public HttpVersion(int major, int minor)
major
- the major version number of the HTTP protocolminor
- the minor version number of the HTTP protocol
java.lang.IllegalArgumentException
- if either major or minor version number is negativeMethod Detail |
public int getMajor()
public int getMinor()
public int hashCode()
Object.hashCode()
public boolean equals(java.lang.Object obj)
Object.equals(java.lang.Object)
public int compareTo(HttpVersion anotherVer)
anotherVer
- the version to be compared with.
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
Comparable.compareTo(java.lang.Object)
public boolean equals(HttpVersion version)
public boolean greaterEquals(HttpVersion version)
public boolean lessEquals(HttpVersion version)
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |