org.springframework.web.context.request

Interface NativeWebRequest

    • Method Detail

      • getNativeRequest

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

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

        @Nullable
        <T> T getNativeRequest(@Nullable
                                         java.lang.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:
        HttpServletRequest
      • getNativeResponse

        @Nullable
        <T> T getNativeResponse(@Nullable
                                          java.lang.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:
        HttpServletResponse