public final class HttpUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
SC_BAD_GATEWAY
Http Status SC_BAD_GATEWAY.
|
static int |
SC_BAD_REQUEST
Http Status SC_BAD_REQUEST.
|
static int |
SC_CONFLICT
Http Status SC_CONFLICT.
|
static int |
SC_CREATED
Http Status SC_CREATED.
|
static int |
SC_FORBIDDEN
Http Status SC_FORBIDDEN.
|
static int |
SC_GATEWAY_TIMEOUT
Http Status SC_GATEWAY_TIMEOUT.
|
static int |
SC_INTERNAL_SERVER_ERROR
Http Status SC_INTERNAL_SERVER_ERROR.
|
static int |
SC_METHOD_NOT_ALLOWED
Http Status SC_METHOD_NOT_ALLOWED.
|
static int |
SC_NOT_FOUND
Http Status SC_NOT_FOUND.
|
static int |
SC_NOT_MODIFIED
Http Status SC_NOT_MODIFIED.
|
static int |
SC_OK
Http Status SC_OK.
|
static int |
SC_SEE_OTHER
Http Status SC_SEE_OTHER.
|
static int |
SC_SERVICE_UNAVAILABLE
Http Status SC_SERVICE_UNAVAILABLE.
|
static int |
SC_UNAUTHORIZED
Http Status SC_UNAUTHORIZED.
|
static int |
SC_UNPROCESSABLE_ENTITY
Http Status SC_UNPROCESSABLE_ENTITY.
|
static int |
SC_UNSUPPORTED_MEDIA_TYPE
Http Status SC_UNSUPPORTED_MEDIA_TYPE.
|
Modifier and Type | Method and Description |
---|---|
static <T> java.util.Map<java.lang.String,java.lang.String> |
toUrlParameterMap(java.lang.String argumentName,
java.util.Collection<T> argCollection)
Creates NameValuePair where the name is a first String parameter and the specified collection provides
values converted to String representation.
|
public static final int SC_BAD_REQUEST
public static final int SC_CONFLICT
public static final int SC_CREATED
public static final int SC_FORBIDDEN
public static final int SC_INTERNAL_SERVER_ERROR
public static final int SC_NOT_FOUND
public static final int SC_NOT_MODIFIED
public static final int SC_OK
public static final int SC_SERVICE_UNAVAILABLE
public static final int SC_UNAUTHORIZED
public static final int SC_UNSUPPORTED_MEDIA_TYPE
public static final int SC_SEE_OTHER
public static final int SC_METHOD_NOT_ALLOWED
public static final int SC_UNPROCESSABLE_ENTITY
public static final int SC_BAD_GATEWAY
public static final int SC_GATEWAY_TIMEOUT
public static <T> java.util.Map<java.lang.String,java.lang.String> toUrlParameterMap(java.lang.String argumentName, java.util.Collection<T> argCollection)
T
- the type parameterargumentName
- the argument nameargCollection
- the arg collection