| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.ProtocolVersion
org.apache.http.HttpVersion
@Contract(threading=IMMUTABLE) public final class HttpVersion
Represents an HTTP version. HTTP uses a "major.minor" numbering scheme to indicate versions of the protocol.
The version of an HTTP message is indicated by an HTTP-Version field in the first line of the message.
     HTTP-Version   = "HTTP" "/" 1*DIGIT "." 1*DIGIT
 
| Field Summary | |
|---|---|
| static String | HTTPThe protocol name. | 
| static HttpVersion | HTTP_0_9HTTP protocol version 0.9 | 
| static HttpVersion | HTTP_1_0HTTP protocol version 1.0 | 
| static HttpVersion | HTTP_1_1HTTP protocol version 1.1 | 
| Fields inherited from class org.apache.http.ProtocolVersion | 
|---|
| major, minor, protocol | 
| Constructor Summary | |
|---|---|
| HttpVersion(int major,
            int minor)Create an HTTP protocol version designator. | |
| Method Summary | |
|---|---|
|  ProtocolVersion | forVersion(int major,
           int minor)Obtains a specific HTTP version. | 
| Methods inherited from class org.apache.http.ProtocolVersion | 
|---|
| clone, compareToVersion, equals, getMajor, getMinor, getProtocol, greaterEquals, hashCode, isComparable, lessEquals, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final String HTTP
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
IllegalArgumentException - if either major or minor version number is negative| Method Detail | 
|---|
public ProtocolVersion forVersion(int major,
                                  int minor)
forVersion in class ProtocolVersionmajor - the major versionminor - the minor version
HttpVersion with the argument version| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||