public interface NativeWebRequest extends WebRequest
WebRequest
interface, exposing the
native request and response objects in a generic fashion.
Mainly intended for framework-internal usage, in particular for generic argument resolution code.
REFERENCE_REQUEST, REFERENCE_SESSION, SCOPE_GLOBAL_SESSION, SCOPE_REQUEST, SCOPE_SESSION
Modifier and Type | Method and Description |
---|---|
Object |
getNativeRequest()
Return the underlying native request object, if available.
|
<T> T |
getNativeRequest(Class<T> requiredType)
Return the underlying native request object, if available.
|
Object |
getNativeResponse()
Return the underlying native response object, if available.
|
<T> T |
getNativeResponse(Class<T> requiredType)
Return the underlying native response object, if available.
|
checkNotModified, checkNotModified, getContextPath, getDescription, getHeader, getHeaderNames, getHeaderValues, getLocale, getParameter, getParameterMap, getParameterNames, getParameterValues, getRemoteUser, getUserPrincipal, isSecure, isUserInRole
getAttribute, getAttributeNames, getSessionId, getSessionMutex, registerDestructionCallback, removeAttribute, resolveReference, setAttribute
Object getNativeRequest()
HttpServletRequest
,
ActionRequest
,
RenderRequest
Object getNativeResponse()
HttpServletResponse
,
ActionResponse
,
RenderResponse
<T> T getNativeRequest(Class<T> requiredType)
requiredType
- the desired type of request objectnull
if none
of that type is availableHttpServletRequest
,
ActionRequest
,
RenderRequest
<T> T getNativeResponse(Class<T> requiredType)
requiredType
- the desired type of response objectnull
if none
of that type is availableHttpServletResponse
,
ActionResponse
,
RenderResponse