Interface NativeWebRequest
- All Superinterfaces:
RequestAttributes, WebRequest
- All Known Subinterfaces:
AsyncWebRequest
- All Known Implementing Classes:
DispatcherServletWebRequest, FacesWebRequest, ServletWebRequest, StandardServletAsyncWebRequest
Extension of the
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.
- Since:
- 2.5.2
- Author:
- Juergen Hoeller
-
Field Summary
Fields inherited from interface RequestAttributes
REFERENCE_REQUEST, REFERENCE_SESSION, SCOPE_REQUEST, SCOPE_SESSION
-
Method Summary
Modifier and TypeMethodDescriptionReturn the underlying native request object.<T> @Nullable T
getNativeRequest
(@Nullable Class<T> requiredType) Return the underlying native request object, if available.Return the underlying native response object, if any.<T> @Nullable T
getNativeResponse
(@Nullable Class<T> requiredType) Return the underlying native response object, if available.Methods inherited from interface RequestAttributes
getAttribute, getAttributeNames, getSessionId, getSessionMutex, registerDestructionCallback, removeAttribute, resolveReference, setAttribute
Methods inherited from interface WebRequest
checkNotModified, checkNotModified, checkNotModified, getContextPath, getDescription, getHeader, getHeaderNames, getHeaderValues, getLocale, getParameter, getParameterMap, getParameterNames, getParameterValues, getRemoteUser, getUserPrincipal, isSecure, isUserInRole
-
Method Details
-
getNativeRequest
-
getNativeResponse
-
getNativeRequest
-
getNativeResponse
-