public abstract class RESTRequest
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HTTP_DELETE |
static java.lang.String |
HTTP_GET |
static java.lang.String |
HTTP_HEAD |
static java.lang.String |
HTTP_PATCH |
static java.lang.String |
HTTP_POST |
static java.lang.String |
HTTP_PUT |
Constructor and Description |
---|
RESTRequest(javax.servlet.http.HttpServletRequest request) |
RESTRequest(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers,
java.util.Map<java.lang.String,java.lang.String[]> queryParams,
java.lang.String httpMethod,
java.lang.String clientAddr,
java.lang.String clientHost) |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getBooleanQueryParam(java.lang.String param,
boolean def) |
java.lang.String |
getClientAddr() |
java.lang.String |
getClientHost() |
abstract java.lang.String |
getDefaultFormat() |
BaseHttpHeaders |
getHeaderParams() |
java.lang.String |
getHttpMethod() |
java.lang.Integer |
getIntegerQueryParam(java.lang.String param) |
java.security.Principal |
getPrincipal() |
java.lang.String |
getQueryParam(java.lang.String param) |
java.lang.String |
getQueryParam(java.lang.String param,
java.lang.String def) |
java.util.Map<java.lang.String,java.lang.String[]> |
getQueryParams() |
java.lang.String |
getRequestFormat() |
abstract java.util.Map<java.lang.String,java.lang.String> |
getRequestFormatMimeTypeMap() |
java.lang.String |
getRequestMIMEType() |
java.lang.String |
getResponseFormat() |
abstract java.util.Map<java.lang.String,java.lang.String> |
getResponseFormatMimeTypeMap() |
java.lang.String |
getResponseMIMEType() |
boolean |
isDELETE() |
boolean |
isGET() |
boolean |
isHEAD() |
boolean |
isPATCH() |
boolean |
isPOST() |
boolean |
isPUT() |
public static final java.lang.String HTTP_GET
public static final java.lang.String HTTP_POST
public static final java.lang.String HTTP_PUT
public static final java.lang.String HTTP_DELETE
public static final java.lang.String HTTP_PATCH
public static final java.lang.String HTTP_HEAD
public RESTRequest(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers, java.util.Map<java.lang.String,java.lang.String[]> queryParams, java.lang.String httpMethod, java.lang.String clientAddr, java.lang.String clientHost)
public RESTRequest(javax.servlet.http.HttpServletRequest request)
public java.security.Principal getPrincipal()
public BaseHttpHeaders getHeaderParams()
public java.lang.String getHttpMethod()
public java.lang.String getResponseFormat()
public java.lang.String getRequestFormat()
public java.util.Map<java.lang.String,java.lang.String[]> getQueryParams()
public boolean isPOST()
public boolean isPUT()
public boolean isDELETE()
public boolean isGET()
public boolean isPATCH()
public boolean isHEAD()
public java.lang.String getResponseMIMEType()
public java.lang.String getRequestMIMEType()
public java.lang.String getQueryParam(java.lang.String param)
public java.lang.Integer getIntegerQueryParam(java.lang.String param)
public java.lang.Boolean getBooleanQueryParam(java.lang.String param, boolean def)
public java.lang.String getQueryParam(java.lang.String param, java.lang.String def)
public java.lang.String getClientAddr()
public java.lang.String getClientHost()
public abstract java.util.Map<java.lang.String,java.lang.String> getResponseFormatMimeTypeMap()
public abstract java.util.Map<java.lang.String,java.lang.String> getRequestFormatMimeTypeMap()
public abstract java.lang.String getDefaultFormat()