类 HttpRequestWrapper

  • 所有已实现的接口:
    HttpMessage, HttpRequest

    public class HttpRequestWrapper
    extends Object
    implements HttpRequest
    Provides a convenient implementation of the HttpRequest interface that can be overridden to adapt the request.

    These methods default to calling through to the wrapped request object.

    从以下版本开始:
    3.1
    作者:
    Arjen Poutsma
    • 构造器详细资料

      • HttpRequestWrapper

        public HttpRequestWrapper​(HttpRequest request)
        Create a new HttpRequest wrapping the given request object.
        参数:
        request - the request object to be wrapped
    • 方法详细资料

      • getMethod

        public HttpMethod getMethod()
        Return the method of the wrapped request.
        指定者:
        getMethod 在接口中 HttpRequest
        返回:
        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.
        指定者:
        getURI 在接口中 HttpRequest
        返回:
        the URI of the request (never null)