类 HttpRequestValues

java.lang.Object
cn.taketoday.web.service.invoker.HttpRequestValues
直接已知子类:
ReactiveHttpRequestValues

public class HttpRequestValues extends Object
Container for HTTP request values extracted from an @HttpExchange-annotated method and argument values passed to it. This is then given to HttpExchangeAdapter to adapt to the underlying HTTP client.
从以下版本开始:
4.0
作者:
Rossen Stoyanchev, Harry Yang
  • 字段详细资料

    • EMPTY_COOKIES_MAP

      private static final cn.taketoday.util.MultiValueMap<String,String> EMPTY_COOKIES_MAP
    • httpMethod

      @Nullable private final HttpMethod httpMethod
    • uri

      @Nullable private final URI uri
    • uriTemplate

      @Nullable private final String uriTemplate
    • uriVariables

      private final Map<String,String> uriVariables
    • headers

      private final HttpHeaders headers
    • cookies

      private final cn.taketoday.util.MultiValueMap<String,String> cookies
    • attributes

      private final Map<String,Object> attributes
    • bodyValue

      @Nullable private final Object bodyValue
  • 构造器详细资料

  • 方法详细资料

    • getHttpMethod

      @Nullable public HttpMethod getHttpMethod()
      Return the HTTP method to use for the request.
    • getUri

      @Nullable public URI getUri()
      Return the URL to use.

      Typically, this comes from a URI method argument, which provides the caller with the option to override the uriTemplate from class and method HttpExchange annotations. annotation.

    • getUriTemplate

      @Nullable public String getUriTemplate()
      Return the URL template for the request. This comes from the values in class and method HttpExchange annotations.
    • getUriVariables

      public Map<String,String> getUriVariables()
      Return the URL template variables, or an empty map.
    • getHeaders

      public HttpHeaders getHeaders()
      Return the headers for the request, if any.
    • getCookies

      public cn.taketoday.util.MultiValueMap<String,String> getCookies()
      Return the cookies for the request, or an empty map.
    • getAttributes

      public Map<String,Object> getAttributes()
      Return the attributes associated with the request, or an empty map.
    • getBodyValue

      @Nullable public Object getBodyValue()
      Return the request body as a value to be serialized, if set.
    • builder

      public static HttpRequestValues.Builder builder()