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 SummaryFields inherited from interface org.springframework.web.context.request.RequestAttributesREFERENCE_REQUEST, REFERENCE_SESSION, SCOPE_REQUEST, SCOPE_SESSION
- 
Method SummaryModifier and TypeMethodDescriptionReturn the underlying native request object.<T> TgetNativeRequest(Class<T> requiredType) Return the underlying native request object, if available.Return the underlying native response object, if any.<T> TgetNativeResponse(Class<T> requiredType) Return the underlying native response object, if available.Methods inherited from interface org.springframework.web.context.request.RequestAttributesgetAttribute, getAttributeNames, getSessionId, getSessionMutex, registerDestructionCallback, removeAttribute, resolveReference, setAttributeMethods inherited from interface org.springframework.web.context.request.WebRequestcheckNotModified, checkNotModified, checkNotModified, getContextPath, getDescription, getHeader, getHeaderNames, getHeaderValues, getLocale, getParameter, getParameterMap, getParameterNames, getParameterValues, getRemoteUser, getUserPrincipal, isSecure, isUserInRole
- 
Method Details- 
getNativeRequestObject getNativeRequest()Return the underlying native request object.- See Also:
 
- 
getNativeResponseReturn the underlying native response object, if any.- See Also:
 
- 
getNativeRequestReturn the underlying native request object, if available.- Parameters:
- requiredType- the desired type of request object
- Returns:
- the matching request object, or nullif none of that type is available
- See Also:
 
- 
getNativeResponseReturn the underlying native response object, if available.- Parameters:
- requiredType- the desired type of response object
- Returns:
- the matching response object, or nullif none of that type is available
- See Also:
 
 
-