public abstract class RESTRequest
extends java.lang.Object
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) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClientAddr() |
java.lang.String |
getClientHost() |
abstract java.lang.String |
getDefaultFormat() |
BaseHttpHeaders |
getHeaderParams() |
java.lang.String |
getHttpMethod() |
java.security.Principal |
getPrincipal() |
java.lang.String |
getQueryParam(java.lang.String param) |
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 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.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()