com.foxinmy.weixin4j.http
Class HttpVersion

java.lang.Object
  extended by 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)
See Also:

Field Summary
static HttpVersion HTTP_1_0
          HTTP/1.0
static String HTTP_1_0_STRING
           
static HttpVersion HTTP_1_1
          HTTP/1.1
static String HTTP_1_1_STRING
           
 
Constructor Summary
HttpVersion(String text, boolean keepAlive)
           
HttpVersion(String protocol, int major, int minor, boolean keepAlive)
           
 
Method Summary
 int compareTo(HttpVersion o)
           
 boolean equals(Object o)
           
 int getMajor()
           
 int getMinor()
           
 String getProtocol()
           
 String getText()
           
 int hashCode()
           
 boolean isKeepAlive()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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

Constructor Detail

HttpVersion

public HttpVersion(String text,
                   boolean keepAlive)

HttpVersion

public HttpVersion(String protocol,
                   int major,
                   int minor,
                   boolean keepAlive)
Method Detail

getProtocol

public String getProtocol()

getMajor

public int getMajor()

getMinor

public int getMinor()

isKeepAlive

public boolean isKeepAlive()

getText

public String getText()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

compareTo

public int compareTo(HttpVersion o)
Specified by:
compareTo in interface Comparable<HttpVersion>


Copyright © 2014–2017. All rights reserved.