public class Http extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ACCEPT
Accept header name, define response content type
|
static String |
AUTHORIZATION
Authorization header name
|
static int |
BAD_REQUEST
BAD_REQUEST HTTP status code value
|
static int |
CONFLICT
CONFLICT HTTP status code value
|
static String |
CONTENT_TYPE
Content type header name, define request content type
|
static int |
CREATED
CREATED HTTP status code value
|
static int |
FORBIDDEN
FORBIDDEN HTTP status code value
|
static String |
FORM
Form content type value, can be used for Accept or Content-type header
|
static int |
FOUND
FOUND HTTP status code value
|
static int |
INTERNAL_SERVER_ERROR
INTERNAL_SERVER_ERROR HTTP status code value
|
static String |
JSON
JSON content type value, can be used for Accept or Content-type header
|
static int |
MOVED_PERMANENTLY
MOVED_PERMANENTLY HTTP status code value
|
static int |
NO_CONTENT
OK NO_CONTENT status code value
|
static int |
NOT_ACCEPTABLE
NOT_ACCEPTABLE HTTP status code value
|
static int |
NOT_FOUND
NOT_FOUND HTTP status code value
|
static int |
NOT_IMPLEMENTED
NOT_IMPLEMENTED HTTP status code value
|
static int |
NOT_MODIFIED
NOT_MODIFIED HTTP status code value
|
static int |
OK
OK HTTP status code value
|
static int |
UNAUTHORIZED
UNAUTHORIZED HTTP status code value
|
static String |
XML
XML content type value, can be used for Accept or Content-type header
|
Constructor and Description |
---|
Http() |
public static final String ACCEPT
public static final String CONTENT_TYPE
public static final String AUTHORIZATION
public static final String JSON
public static final String XML
public static final String FORM
public static final int OK
public static final int CREATED
public static final int NO_CONTENT
public static final int MOVED_PERMANENTLY
public static final int FOUND
public static final int NOT_MODIFIED
public static final int BAD_REQUEST
public static final int UNAUTHORIZED
public static final int FORBIDDEN
public static final int NOT_FOUND
public static final int NOT_ACCEPTABLE
public static final int CONFLICT
public static final int INTERNAL_SERVER_ERROR
public static final int NOT_IMPLEMENTED
Copyright © 2009–2014. All rights reserved.