Interface NativeWebRequest

All Superinterfaces:
RequestAttributes, WebRequest
All Known Subinterfaces:
AsyncWebRequest
All Known Implementing Classes:
DispatcherServletWebRequest, FacesWebRequest, ServletWebRequest, StandardServletAsyncWebRequest

public interface NativeWebRequest extends WebRequest
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
  • Method Details

    • getNativeRequest

      Object getNativeRequest()
      Return the underlying native request object.
      See Also:
    • getNativeResponse

      @Nullable Object getNativeResponse()
      Return the underlying native response object, if any.
      See Also:
    • getNativeRequest

      @Nullable <T> T getNativeRequest(@Nullable Class<T> requiredType)
      Return the underlying native request object, if available.
      Parameters:
      requiredType - the desired type of request object
      Returns:
      the matching request object, or null if none of that type is available
      See Also:
    • getNativeResponse

      @Nullable <T> T getNativeResponse(@Nullable Class<T> requiredType)
      Return the underlying native response object, if available.
      Parameters:
      requiredType - the desired type of response object
      Returns:
      the matching response object, or null if none of that type is available
      See Also: