| java.lang.Object org.apache.http.ProtocolVersion org.apache.http.HttpVersion
HttpVersion | final public class HttpVersion extends ProtocolVersion implements Serializable(Code) | | Represents an HTTP version, as specified in RFC 2616.
author: Oleg Kalnichevski version: $Revision: 609106 $ $Date: 2008-01-05 10:15:42 +0100 (Sat, 05 Jan 2008) $ |
Constructor Summary | |
public | HttpVersion(int major, int minor) Create an HTTP protocol version designator. |
HTTP | final public static String HTTP(Code) | | The protocol name.
|
HttpVersion | public HttpVersion(int major, int minor)(Code) | | Create an HTTP protocol version designator.
Parameters: major - the major version number of the HTTP protocol Parameters: minor - the minor version number of the HTTP protocol throws: IllegalArgumentException - if either major or minor version number is negative |
forVersion | public ProtocolVersion forVersion(int major, int minor)(Code) | | Obtains a specific HTTP version.
Parameters: major - the major version Parameters: minor - the minor version an instance of HttpVersion with the argument version |
|
|