Class HttpRequestValues

java.lang.Object
org.springframework.web.service.invoker.HttpRequestValues

public final 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 HttpClientAdapter to adapt to the underlying HTTP client.
Since:
6.0
Author:
Rossen Stoyanchev
  • Method Details

    • getHttpMethod

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

      @Nullable public URI getUri()
      Return the full URL to use, if set.

      This is mutually exclusive with uriTemplate. One of the two has a value but not both.

    • getUriTemplate

      @Nullable public String getUriTemplate()
      Return the URL template for the request, if set.

      This is mutually exclusive with a full URL. One of the two has a value but not both.

    • 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 MultiValueMap<String,String> getCookies()
      Return the cookies for the request, if any.
    • getBodyValue

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

      This is mutually exclusive with getBody(). Only one of the two or neither is set.

    • getBody

      @Nullable public Publisher<?> getBody()
      Return the request body as a Publisher.

      This is mutually exclusive with getBodyValue(). Only one of the two or neither is set.

    • getBodyElementType

      @Nullable public ParameterizedTypeReference<?> getBodyElementType()
      Return the element type for a Publisher body.
    • builder

      public static HttpRequestValues.Builder builder(HttpMethod httpMethod)