Class Overview
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
Summary
Public Constructors |
|
HttpVersion(int major, int minor)
Create an HTTP protocol version designator.
|
Constants
public
static
final
String
HTTP
Fields
public
static
final
HttpVersion
HTTP_0_9
HTTP protocol version 0.9
public
static
final
HttpVersion
HTTP_1_0
HTTP protocol version 1.0
public
static
final
HttpVersion
HTTP_1_1
HTTP protocol version 1.1
Public Constructors
public
HttpVersion
(int major, int minor)
Create an HTTP protocol version designator.
Parameters
major
| the major version number of the HTTP protocol |
minor
| the minor version number of the HTTP protocol |
Public Methods
public
ProtocolVersion
forVersion
(int major, int minor)
Obtains a specific HTTP version.
Parameters
major
| the major version |
minor
| the minor version |