Class HttpRequestWrapper

    • Constructor Detail

      • HttpRequestWrapper

        public HttpRequestWrapper​(HttpRequest request)
        Create a new HttpRequest wrapping the given request object.
        Parameters:
        request - the request object to be wrapped
    • Method Detail

      • getMethod

        public HttpMethod getMethod()
        Return the method of the wrapped request.
        Specified by:
        getMethod in interface HttpRequest
        Returns:
        the HTTP method as an HttpMethod enum value, or null if not resolvable (e.g. in case of a non-standard HTTP method)
      • getURI

        public URI getURI()
        Return the URI of the wrapped request.
        Specified by:
        getURI in interface HttpRequest
        Returns:
        the URI of the request (never null)