类 HttpRequestDecorator

java.lang.Object
cn.taketoday.http.client.support.HttpRequestDecorator
所有已实现的接口:
HttpMessage, HttpRequest
直接已知子类:
RequestPartServerHttpRequest

public class HttpRequestDecorator 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.

从以下版本开始:
4.0
作者:
Arjen Poutsma
  • 字段详细资料

  • 构造器详细资料

    • HttpRequestDecorator

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

    • getRequest

      public HttpRequest getRequest()
      Return the wrapped request.
    • getMethod

      @Nullable public HttpMethod getMethod()
      Return the method of the wrapped request.
      指定者:
      getMethod 在接口中 HttpRequest
      返回:
      the HTTP method as an HttpMethod value
      另请参阅:
    • getMethodValue

      public String getMethodValue()
      Return the method value of the wrapped request.
      指定者:
      getMethodValue 在接口中 HttpRequest
      返回:
      the HTTP method as a plain String
      另请参阅:
    • getURI

      public URI getURI()
      Return the URI of the wrapped request.
      指定者:
      getURI 在接口中 HttpRequest
      返回:
      the URI of the request (never null)
    • getHeaders

      public HttpHeaders getHeaders()
      Return the headers of the wrapped request.
      指定者:
      getHeaders 在接口中 HttpMessage
      返回:
      a corresponding HttpHeaders object (never null)