Package com.foxinmy.weixin4j.http
Class HTTP
- java.lang.Object
-
- com.foxinmy.weixin4j.http.HTTP
-
public final class HTTP extends Object
Constants and static helpers related to the HTTP protocol.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringASCIIstatic StringCHARSET_PARAMstatic StringCHUNK_CODINGTransfer encoding definitionsstatic StringCONN_CLOSEHTTP connection controlstatic StringCONN_DIRECTIVEstatic StringCONN_KEEP_ALIVEstatic StringCONTENT_ENCODINGstatic StringCONTENT_LENstatic StringCONTENT_TYPEstatic intCRstatic StringDATE_HEADERstatic CharsetDEF_CONTENT_CHARSETstatic CharsetDEF_PROTOCOL_CHARSETstatic StringDEFAULT_CONTENT_CHARSETstatic StringDEFAULT_CONTENT_TYPEstatic StringDEFAULT_PROTOCOL_CHARSETstatic StringEXPECT_CONTINUEHTTP expectationsstatic StringEXPECT_DIRECTIVEstatic intHTstatic StringIDENTITY_CODINGstatic intLFstatic StringOCTET_STREAM_TYPEstatic StringPLAIN_TEXT_TYPEstatic StringSERVER_HEADERstatic intSPstatic StringTARGET_HOSTstatic StringTRANSFER_ENCODINGHTTP header definitionsstatic StringUS_ASCIIstatic StringUSER_AGENTstatic StringUTF_16static StringUTF_8
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisWhitespace(char ch)
-
-
-
Field Detail
-
CR
public static final int CR
- See Also:
- Constant Field Values
-
LF
public static final int LF
- See Also:
- Constant Field Values
-
SP
public static final int SP
- See Also:
- Constant Field Values
-
HT
public static final int HT
- See Also:
- Constant Field Values
-
TRANSFER_ENCODING
public static final String TRANSFER_ENCODING
HTTP header definitions- See Also:
- Constant Field Values
-
CONTENT_LEN
public static final String CONTENT_LEN
- See Also:
- Constant Field Values
-
CONTENT_TYPE
public static final String CONTENT_TYPE
- See Also:
- Constant Field Values
-
CONTENT_ENCODING
public static final String CONTENT_ENCODING
- See Also:
- Constant Field Values
-
EXPECT_DIRECTIVE
public static final String EXPECT_DIRECTIVE
- See Also:
- Constant Field Values
-
CONN_DIRECTIVE
public static final String CONN_DIRECTIVE
- See Also:
- Constant Field Values
-
TARGET_HOST
public static final String TARGET_HOST
- See Also:
- Constant Field Values
-
USER_AGENT
public static final String USER_AGENT
- See Also:
- Constant Field Values
-
DATE_HEADER
public static final String DATE_HEADER
- See Also:
- Constant Field Values
-
SERVER_HEADER
public static final String SERVER_HEADER
- See Also:
- Constant Field Values
-
EXPECT_CONTINUE
public static final String EXPECT_CONTINUE
HTTP expectations- See Also:
- Constant Field Values
-
CONN_CLOSE
public static final String CONN_CLOSE
HTTP connection control- See Also:
- Constant Field Values
-
CONN_KEEP_ALIVE
public static final String CONN_KEEP_ALIVE
- See Also:
- Constant Field Values
-
CHUNK_CODING
public static final String CHUNK_CODING
Transfer encoding definitions- See Also:
- Constant Field Values
-
IDENTITY_CODING
public static final String IDENTITY_CODING
- See Also:
- Constant Field Values
-
DEF_CONTENT_CHARSET
public static final Charset DEF_CONTENT_CHARSET
-
DEF_PROTOCOL_CHARSET
public static final Charset DEF_PROTOCOL_CHARSET
-
UTF_8
public static final String UTF_8
- See Also:
- Constant Field Values
-
UTF_16
public static final String UTF_16
- See Also:
- Constant Field Values
-
US_ASCII
public static final String US_ASCII
- See Also:
- Constant Field Values
-
ASCII
public static final String ASCII
- See Also:
- Constant Field Values
-
DEFAULT_CONTENT_CHARSET
public static final String DEFAULT_CONTENT_CHARSET
- See Also:
- Constant Field Values
-
DEFAULT_PROTOCOL_CHARSET
public static final String DEFAULT_PROTOCOL_CHARSET
- See Also:
- Constant Field Values
-
OCTET_STREAM_TYPE
public static final String OCTET_STREAM_TYPE
- See Also:
- Constant Field Values
-
PLAIN_TEXT_TYPE
public static final String PLAIN_TEXT_TYPE
- See Also:
- Constant Field Values
-
CHARSET_PARAM
public static final String CHARSET_PARAM
- See Also:
- Constant Field Values
-
DEFAULT_CONTENT_TYPE
public static final String DEFAULT_CONTENT_TYPE
- See Also:
- Constant Field Values
-
-