Package com.foxinmy.weixin4j.http
Class HttpVersion
- java.lang.Object
-
- com.foxinmy.weixin4j.http.HttpVersion
-
- All Implemented Interfaces:
Comparable<HttpVersion>
public class HttpVersion extends Object implements Comparable<HttpVersion>
reference of apache pivot- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Field Summary
Fields Modifier and Type Field Description static HttpVersion
HTTP_1_0
HTTP/1.0static String
HTTP_1_0_STRING
static HttpVersion
HTTP_1_1
HTTP/1.1static String
HTTP_1_1_STRING
-
Constructor Summary
Constructors Constructor Description HttpVersion(String text, boolean keepAlive)
HttpVersion(String protocol, int major, int minor, boolean keepAlive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(HttpVersion o)
boolean
equals(Object o)
int
getMajor()
int
getMinor()
String
getProtocol()
String
getText()
int
hashCode()
boolean
isKeepAlive()
String
toString()
-
-
-
Field Detail
-
HTTP_1_0_STRING
public static final String HTTP_1_0_STRING
- See Also:
- Constant Field Values
-
HTTP_1_1_STRING
public static final String HTTP_1_1_STRING
- See Also:
- Constant Field Values
-
HTTP_1_0
public static final HttpVersion HTTP_1_0
HTTP/1.0
-
HTTP_1_1
public static final HttpVersion HTTP_1_1
HTTP/1.1
-
-
Method Detail
-
getProtocol
public String getProtocol()
-
getMajor
public int getMajor()
-
getMinor
public int getMinor()
-
isKeepAlive
public boolean isKeepAlive()
-
getText
public String getText()
-
compareTo
public int compareTo(HttpVersion o)
- Specified by:
compareTo
in interfaceComparable<HttpVersion>
-
-