## Uses of Class
org.apache.http.ProtocolVersion

Packages that use ProtocolVersion
Package | Description
--- | ---
org.apache.http | Core HTTP components based on the blocking I/O model.
org.apache.http.impl | Default implementations for interfaces in `org.apache.http`.
org.apache.http.message | Basic HTTP message implementations.
org.apache.http.params | The parameterization framework for HTTP components.

### Uses of ProtocolVersion in org.apache.http

Subclasses of ProtocolVersion in org.apache.http
Modifier and Type | Class and Description
--- | ---
`class` | `HttpVersion` Represents an HTTP version.

Methods in org.apache.http that return ProtocolVersion
Modifier and Type | Method and Description
--- | ---
`ProtocolVersion` | ProtocolVersion.`forVersion(int major, int minor)` Obtains a specific version of this protocol.
`ProtocolVersion` | HttpVersion.`forVersion(int major, int minor)` Obtains a specific HTTP version.
`ProtocolVersion` | StatusLine.`getProtocolVersion()`
`ProtocolVersion` | RequestLine.`getProtocolVersion()`
`ProtocolVersion` | HttpMessage.`getProtocolVersion()` Returns the protocol version this message is compatible with.

Methods in org.apache.http with parameters of type ProtocolVersion
Modifier and Type | Method and Description
--- | ---
`int` | ProtocolVersion.`compareToVersion(ProtocolVersion that)` Compares this protocol version with another one.
`boolean` | ProtocolVersion.`greaterEquals(ProtocolVersion version)` Tests if this protocol version is greater or equal to the given one.
`boolean` | ProtocolVersion.`isComparable(ProtocolVersion that)` Checks whether this protocol can be compared to another one.
`boolean` | ProtocolVersion.`lessEquals(ProtocolVersion version)` Tests if this protocol version is less or equal to the given one.
`HttpResponse` | HttpResponseFactory.`newHttpResponse(ProtocolVersion ver, int status, HttpContext context)` Creates a new response from status line elements.
`void` | HttpResponse.`setStatusLine(ProtocolVersion ver, int code)` Sets the status line of this response.
`void` | HttpResponse.`setStatusLine(ProtocolVersion ver, int code, String reason)` Sets the status line of this response with a reason phrase.

### Uses of ProtocolVersion in org.apache.http.impl

Methods in org.apache.http.impl with parameters of type ProtocolVersion
Modifier and Type | Method and Description
--- | ---
`HttpResponse` | DefaultHttpResponseFactory.`newHttpResponse(ProtocolVersion ver, int status, HttpContext context)`

### Uses of ProtocolVersion in org.apache.http.message

Fields in org.apache.http.message declared as ProtocolVersion
Modifier and Type | Field and Description
--- | ---
`protected ProtocolVersion` | BasicLineParser.`protocol` A version of the protocol to parse.

Methods in org.apache.http.message that return ProtocolVersion
Modifier and Type | Method and Description
--- | ---
`protected ProtocolVersion` | BasicLineParser.`createProtocolVersion(int major, int minor)` Creates a protocol version.
`ProtocolVersion` | BasicHttpResponse.`getProtocolVersion()`
`ProtocolVersion` | BasicStatusLine.`getProtocolVersion()`
`ProtocolVersion` | BasicRequestLine.`getProtocolVersion()`
`ProtocolVersion` | BasicHttpRequest.`getProtocolVersion()` Returns the HTTP protocol version to be used for this request.
`ProtocolVersion` | LineParser.`parseProtocolVersion(CharArrayBuffer buffer, ParserCursor cursor)` Parses the textual representation of a protocol version.
`ProtocolVersion` | BasicLineParser.`parseProtocolVersion(CharArrayBuffer buffer, ParserCursor cursor)`
`static ProtocolVersion` | BasicLineParser.`parseProtocolVersion(String value, LineParser parser)`

Methods in org.apache.http.message with parameters of type ProtocolVersion
Modifier and Type | Method and Description
--- | ---
`CharArrayBuffer` | BasicLineFormatter.`appendProtocolVersion(CharArrayBuffer buffer, ProtocolVersion version)`
`CharArrayBuffer` | LineFormatter.`appendProtocolVersion(CharArrayBuffer buffer, ProtocolVersion version)` Formats a protocol version.
`protected RequestLine` | BasicLineParser.`createRequestLine(String method, String uri, ProtocolVersion ver)` Instantiates a new request line.
`protected StatusLine` | BasicLineParser.`createStatusLine(ProtocolVersion ver, int status, String reason)` Instantiates a new status line.
`protected int` | BasicLineFormatter.`estimateProtocolVersionLen(ProtocolVersion version)` Guesses the length of a formatted protocol version.
`static String` | BasicLineFormatter.`formatProtocolVersion(ProtocolVersion version, LineFormatter formatter)` Formats a protocol version.
`void` | BasicHttpResponse.`setStatusLine(ProtocolVersion ver, int code)`
`void` | BasicHttpResponse.`setStatusLine(ProtocolVersion ver, int code, String reason)`

Constructors in org.apache.http.message with parameters of type ProtocolVersion
Constructor and Description
`BasicHttpEntityEnclosingRequest(String method, String uri, ProtocolVersion ver)`
`BasicHttpRequest(String method, String uri, ProtocolVersion ver)` Creates an instance of this class using the given request method, URI and the HTTP protocol version.
`BasicHttpResponse(ProtocolVersion ver, int code, String reason)` Creates a response from elements of a status line.
`BasicLineParser(ProtocolVersion proto)` Creates a new line parser for the given HTTP-like protocol.
`BasicRequestLine(String method, String uri, ProtocolVersion version)`
`BasicStatusLine(ProtocolVersion version, int statusCode, String reasonPhrase)` Creates a new status line with the given version, status, and reason.

### Uses of ProtocolVersion in org.apache.http.params

Methods in org.apache.http.params that return ProtocolVersion
Modifier and Type | Method and Description
--- | ---
`static ProtocolVersion` | HttpProtocolParams.`getVersion(HttpParams params)` Deprecated. Obtains value of the `CoreProtocolPNames.PROTOCOL_VERSION` parameter.

Methods in org.apache.http.params with parameters of type ProtocolVersion
Modifier and Type | Method and Description
--- | ---
`static void` | HttpProtocolParams.`setVersion(HttpParams params, ProtocolVersion version)` Deprecated. Sets value of the `CoreProtocolPNames.PROTOCOL_VERSION` parameter.