public class RequestHelper
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RequestHelper.RequestType
Enumeration of different supported request handling types.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HEADER_ACCEPT |
| Constructor and Description |
|---|
RequestHelper() |
| Modifier and Type | Method and Description |
|---|---|
RequestHelper.RequestType |
getRequestType(javax.servlet.http.HttpServletRequest request,
RequestHelper.RequestType defaultType)
Help method to determine the type or request by looking at URI ending,
and the contentType and accept header values.
|
public static final java.lang.String HEADER_ACCEPT
public RequestHelper.RequestType getRequestType(javax.servlet.http.HttpServletRequest request, RequestHelper.RequestType defaultType)
request - the related http requestdefaultType - default type if no matching could be found.