public final class HttpConstants extends Object
Modifier and Type | Field and Description |
---|---|
static String |
_307_TEMPORARY_REDIRECT
HTTP code 307: the requested URL redirected to another URL.
|
static String |
ALLOW
Allowed method header.
|
static String |
CLOSE
Value for HTTP header field "Connection" (
close ). |
static String |
EMPTY
Empty string.
|
static String |
END_OF_LINE
The "end of line" CR + LF.
|
static String |
FSLASH
Forward slash string.
|
static String |
HEADER_ACCEPT
HTTP header field (in lower case)
accept . |
static String |
HEADER_ACCEPT_ENCODING
HTTP header field (in lower case)
accept-encoding . |
static String |
HEADER_CACHE_CONTROLE
HTTP header field
cache-control . |
static String |
HEADER_CONNECTION
HTTP header field (in lower case)
connection . |
static String |
HEADER_CONTENT_ENCODING
HTTP header field (in lower case)
content-encoding . |
static String |
HEADER_CONTENT_LENGTH
HTTP header field (in lower case)
content-length . |
static String |
HEADER_CONTENT_TYPE
HTTP header field (in lower case)
content-type . |
static String |
HEADER_COOKIE
HTTP header field (in lower case)
cookie . |
static String |
HEADER_IF_NONE_MATCH
HTTP header field (in lower case)
if-none-match . |
static String |
HEADER_TRANSFER_ENCODING
HTTP header field (in lower case)
transfer-encoding . |
static String |
HTTP_METHOD_CONNECT
HTTP
CONNECT method token as String. |
static String |
HTTP_METHOD_DELETE
HTTP
DELETE method token as String. |
static String |
HTTP_METHOD_GET
HTTP
GET method token as String. |
static String |
HTTP_METHOD_HEAD
HTTP
HEAD method token as String. |
static String |
HTTP_METHOD_OPTIONS
HTTP
OPTIONS method token as String. |
static String |
HTTP_METHOD_PATCH
HTTP
PATCH method token as String. |
static String |
HTTP_METHOD_POST
HTTP
POST method token as String. |
static String |
HTTP_METHOD_PUT
HTTP
PUT method token as String. |
static String |
HTTP_METHOD_TRACE
HTTP
TRACE method token as String. |
static String |
HTTP_STATUS_BADREQUEST
HTTP code 400: the request is not valid.
|
static String |
HTTP_STATUS_FORBIDDEN
HTTP code 403: the client doesn't have the permission to access the requested URL.
|
static String |
HTTP_STATUS_INTERNALERROR
HTTP code 500: the server has encountered an error while generating the response.
|
static String |
HTTP_STATUS_MEDIA_TYPE
HTTP code 415: the requested resource type is not supported.
|
static String |
HTTP_STATUS_METHODNOTALLOWED
HTTP code 405: the HTTP request method (GET/POST/PUT/DELETE) is not allowed on the server for the requested URI.
|
static String |
HTTP_STATUS_NOTACCEPTABLE
HTTP code 406: the client cannot handle the data returned in the HTTP response.
|
static String |
HTTP_STATUS_NOTFOUND
HTTP code 404: the requested URL has not been found.
|
static String |
HTTP_STATUS_NOTIMPLEMENTED
HTTP code 501: the HTTP request method is not implemented.
|
static String |
HTTP_STATUS_NOTMODIFIED
HTTP code 304: the requested resources hasn't been modified since the last time.
|
static String |
HTTP_STATUS_OK
HTTP code 200: the response has been found and correctly sent.
|
static String |
HTTP_STATUS_REDIRECT
HTTP code 301: the requested URL redirected to another URL.
|
static String |
HTTP_STATUS_REQUESTTIMEOUT
HTTP code 408: the client initiated the connection but didn't send the request (idle connection).
|
static String |
HTTP_STATUS_UNAUTHORIZED
HTTP code 401: the requested resources require valid authentication credentials.
|
static String |
KEEP_ALIVE
Value for HTTP header field "Connection" (
keep-alive ). |
static String |
TAB
Tabulation '\t'.
|
static String |
WILDCARD
Wildcard '*'.
|
public static final String _307_TEMPORARY_REDIRECT
public static final String ALLOW
public static final String CLOSE
close
).public static final String EMPTY
public static final String END_OF_LINE
public static final String FSLASH
public static final String HEADER_ACCEPT
accept
.public static final String HEADER_ACCEPT_ENCODING
accept-encoding
.public static final String HEADER_CACHE_CONTROLE
cache-control
.public static final String HEADER_CONNECTION
connection
.public static final String HEADER_CONTENT_ENCODING
content-encoding
.public static final String HEADER_CONTENT_LENGTH
content-length
.public static final String HEADER_CONTENT_TYPE
content-type
.public static final String HEADER_COOKIE
cookie
.public static final String HEADER_IF_NONE_MATCH
if-none-match
.public static final String HEADER_TRANSFER_ENCODING
transfer-encoding
. See RFC HTTP/1.1 RFC2616 3.6.public static final String HTTP_METHOD_CONNECT
CONNECT
method token as String.public static final String HTTP_METHOD_DELETE
DELETE
method token as String.public static final String HTTP_METHOD_GET
GET
method token as String.public static final String HTTP_METHOD_HEAD
HEAD
method token as String.public static final String HTTP_METHOD_OPTIONS
OPTIONS
method token as String.public static final String HTTP_METHOD_PATCH
PATCH
method token as String.public static final String HTTP_METHOD_POST
POST
method token as String.public static final String HTTP_METHOD_PUT
PUT
method token as String.public static final String HTTP_METHOD_TRACE
TRACE
method token as String.public static final String HTTP_STATUS_BADREQUEST
public static final String HTTP_STATUS_FORBIDDEN
public static final String HTTP_STATUS_INTERNALERROR
public static final String HTTP_STATUS_MEDIA_TYPE
public static final String HTTP_STATUS_METHODNOTALLOWED
public static final String HTTP_STATUS_NOTACCEPTABLE
public static final String HTTP_STATUS_NOTFOUND
public static final String HTTP_STATUS_NOTIMPLEMENTED
public static final String HTTP_STATUS_NOTMODIFIED
public static final String HTTP_STATUS_OK
public static final String HTTP_STATUS_REDIRECT
public static final String HTTP_STATUS_REQUESTTIMEOUT
public static final String HTTP_STATUS_UNAUTHORIZED
public static final String KEEP_ALIVE
keep-alive
).public static final String TAB
public static final String WILDCARD