@HttpExchange-annotated
method and argument values passed to it. This is then given to
HttpExchangeAdapter to adapt to the underlying HTTP client.
| Modifier and Type | Class and Description |
|---|---|
| public static class | HttpRequestValues.
Builder for |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Object | |
| private final MultiValueMap | |
| private static final MultiValueMap | |
| private final HttpHeaders | |
| private final HttpMethod | |
| private final URI | |
| private final UriBuilderFactory | |
| private final String | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| protected | HttpRequestValues(HttpMethod httpMethod, URI uri, String uriTemplate, Map<String, String> uriVariables, HttpHeaders headers, MultiValueMap<String, String> cookies, Map<String, Object> attributes, Object bodyValue)
Deprecated
for removal since 6.1. in favour of
HttpRequestValues#HttpRequestValues(HttpMethod, URI, UriBuilderFactory, String, Map, HttpHeaders, MultiValueMap, Map, Object)
to be removed in 6.2.
Constructor without UriBuilderFactory. |
| protected | HttpRequestValues(HttpMethod httpMethod, URI uri, UriBuilderFactory uriBuilderFactory, String uriTemplate, Map<String, String> uriVariables, HttpHeaders headers, MultiValueMap<String, String> cookies, Map<String, Object> attributes, Object bodyValue)
Construct |
| Modifier and Type | Method and Description |
|---|---|
| public static HttpRequestValues. | |
| public Map | |
| public Publisher | getBody()
Deprecated
for removal since 6.1. in favor of
ReactiveHttpRequestValues#getBodyPublisher();
to be removed in 6.2
Return the request body as a Publisher. |
| public ParameterizedTypeReference | getBodyElementType()
Deprecated
for removal since 6.1. in favor of
ReactiveHttpRequestValues#getBodyPublisherElementType();
to be removed in 6.2
Return the element type for a Publisher body. |
| public Object | |
| public MultiValueMap | |
| public HttpHeaders | |
| public HttpMethod | |
| public URI | |
| public UriBuilderFactory | getUriBuilderFactory()
Return the |
| public String | |
| public Map |
| attributes | back to summary |
|---|---|
| private final Map<String, Object> attributes | |
| bodyValue | back to summary |
|---|---|
| private final Object bodyValue
| |
| cookies | back to summary |
|---|---|
| private final MultiValueMap<String, String> cookies | |
| EMPTY_COOKIES_MAP | back to summary |
|---|---|
| private static final MultiValueMap<String, String> EMPTY_COOKIES_MAP | |
| headers | back to summary |
|---|---|
| private final HttpHeaders headers | |
| httpMethod | back to summary |
|---|---|
| private final HttpMethod httpMethod
| |
| uri | back to summary |
|---|---|
| private final URI uri
| |
| uriBuilderFactory | back to summary |
|---|---|
| private final UriBuilderFactory uriBuilderFactory
| |
| uriTemplate | back to summary |
|---|---|
| private final String uriTemplate
| |
| uriVariables | back to summary |
|---|---|
| private final Map<String, String> uriVariables | |
| HttpRequestValues | back to summary |
|---|---|
| protected HttpRequestValues(HttpMethod httpMethod, URI uri, String uriTemplate, Map<String, String> uriVariables, HttpHeaders headers, MultiValueMap<String, String> cookies, Map<String, Object> attributes, Object bodyValue)
Deprecated for removal since 6.1. in favour of
Constructor without UriBuilderFactory.
| |
| HttpRequestValues | back to summary |
|---|---|
| protected HttpRequestValues(HttpMethod httpMethod, URI uri, UriBuilderFactory uriBuilderFactory, String uriTemplate, Map<String, String> uriVariables, HttpHeaders headers, MultiValueMap<String, String> cookies, Map<String, Object> attributes, Object bodyValue) Construct
| |
| builder | back to summary |
|---|---|
| public static HttpRequestValues. | |
| getAttributes | back to summary |
|---|---|
| public Map Return the attributes associated with the request, or an empty map. | |
| getBody | back to summary |
|---|---|
| public Publisher Deprecated for removal since 6.1. in favor of Return the request body as a Publisher. This is mutually exclusive with
| |
| getBodyElementType | back to summary |
|---|---|
| public ParameterizedTypeReference Deprecated for removal since 6.1. in favor of Return the element type for a Publisher body.
| |
| getBodyValue | back to summary |
|---|---|
| public Object getBodyValue() Return the request body as a value to be serialized, if set.
| |
| getCookies | back to summary |
|---|---|
| public MultiValueMap Return the cookies for the request, or an empty map. | |
| getHeaders | back to summary |
|---|---|
| public HttpHeaders getHeaders() Return the headers for the request, if any. | |
| getHttpMethod | back to summary |
|---|---|
| public HttpMethod getHttpMethod() Return the HTTP method to use for the request.
| |
| getUri | back to summary |
|---|---|
| public URI getUri() Return the URL to use. Typically, this comes from a
| |
| getUriBuilderFactory | back to summary |
|---|---|
| public UriBuilderFactory getUriBuilderFactory() Return the The
| |
| getUriTemplate | back to summary |
|---|---|
| public String getUriTemplate() Return the URL template for the request. This comes from the values in
class and method
| |
| getUriVariables | back to summary |
|---|---|
| public Map Return the URL template variables, or an empty map. | |
HttpRequestValues.
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private Object | |
| private MultiValueMap | |
| private HttpHeaders | |
| private HttpMethod | |
| private MultiValueMap | |
| private MultiValueMap | |
| private URI | |
| private UriBuilderFactory | |
| private String | |
| private Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public HttpRequestValues. | addAttribute(String
the attribute name name, Object the attribute value value)Configure an attribute to associate with the request. |
| public HttpRequestValues. | |
| public HttpRequestValues. | |
| public HttpRequestValues. | |
| public HttpRequestValues. | |
| public <T, P extends Publisher | addRequestPart(String name, P publisher, ResolvableType type)
Deprecated
for removal since 6.1. in favor of
ReactiveHttpRequestValues.;
to be removed in 6.2
Variant of |
| private String | appendQueryParams(String uriTemplate, Map<String, String> uriVars, MultiValueMap<String, String> requestParams)
|
| public HttpRequestValues | |
| protected Object | |
| protected HttpRequestValues | createRequestValues(HttpMethod httpMethod, URI uri, String uriTemplate, Map<String, String> uriVars, HttpHeaders headers, MultiValueMap<String, String> cookies, Map<String, Object> attributes, Object bodyValue)
Deprecated
for removal since 6.1. in favour of
Builder#createRequestValues(HttpMethod, URI, UriBuilderFactory, String, Map, HttpHeaders, MultiValueMap, Map, Object)
to be removed in 6.2.
Create |
| protected HttpRequestValues | createRequestValues(HttpMethod httpMethod, URI uri, UriBuilderFactory uriBuilderFactory, String uriTemplate, Map<String, String> uriVars, HttpHeaders headers, MultiValueMap<String, String> cookies, Map<String, Object> attributes, Object bodyValue)
Create |
| protected boolean | |
| private boolean | |
| protected boolean | |
| private HttpHeaders | |
| public HttpRequestValues. | |
| public <T, P extends Publisher | setBody(P body, ParameterizedTypeReference<T> elementTye)
Deprecated
for removal since 6.1. in favor of
ReactiveHttpRequestValues.;
to be removed in 6.2
Set the request body as a Reactive Streams Publisher. |
| public void | |
| public HttpRequestValues. | |
| public HttpRequestValues. | |
| public HttpRequestValues. | |
| public HttpRequestValues. | setUriBuilderFactory(UriBuilderFactory uriBuilderFactory)
Set the |
| public HttpRequestValues. | |
| public HttpRequestValues. |
| attributes | back to summary |
|---|---|
| private Map<String, Object> attributes
| |
| bodyValue | back to summary |
|---|---|
| private Object bodyValue
| |
| cookies | back to summary |
|---|---|
| private MultiValueMap<String, String> cookies
| |
| headers | back to summary |
|---|---|
| private HttpHeaders headers
| |
| httpMethod | back to summary |
|---|---|
| private HttpMethod httpMethod
| |
| parts | back to summary |
|---|---|
| private MultiValueMap<String, Object> parts
| |
| requestParams | back to summary |
|---|---|
| private MultiValueMap<String, String> requestParams
| |
| uri | back to summary |
|---|---|
| private URI uri
| |
| uriBuilderFactory | back to summary |
|---|---|
| private UriBuilderFactory uriBuilderFactory
| |
| uriTemplate | back to summary |
|---|---|
| private String uriTemplate
| |
| uriVars | back to summary |
|---|---|
| private Map<String, String> uriVars
| |
| Builder | back to summary |
|---|---|
| public Builder() | |
| addAttribute | back to summary |
|---|---|
| public HttpRequestValues. Configure an attribute to associate with the request. | |
| addCookie | back to summary |
|---|---|
| public HttpRequestValues. Add the given cookie name and values. | |
| addHeader | back to summary |
|---|---|
| public HttpRequestValues. Add the given header name and values. | |
| addRequestParameter | back to summary |
|---|---|
| public HttpRequestValues. Add the given request parameter name and values. When | |
| addRequestPart | back to summary |
|---|---|
| public HttpRequestValues. Add a part for a multipart request. The part may be:
| |
| addRequestPart | back to summary |
|---|---|
| public <T, P extends Publisher Deprecated for removal since 6.1. in favor of Variant of
| |
| appendQueryParams | back to summary |
|---|---|
| private String appendQueryParams(String uriTemplate, Map<String, String> uriVars, MultiValueMap<String, String> requestParams) | |
| build | back to summary |
|---|---|
| public HttpRequestValues build() Build the | |
| buildMultipartBody | back to summary |
|---|---|
| protected Object buildMultipartBody() | |
| createRequestValues | back to summary |
|---|---|
| protected HttpRequestValues createRequestValues(HttpMethod httpMethod, URI uri, String uriTemplate, Map<String, String> uriVars, HttpHeaders headers, MultiValueMap<String, String> cookies, Map<String, Object> attributes, Object bodyValue)
Deprecated for removal since 6.1. in favour of
Create
| |
| createRequestValues | back to summary |
|---|---|
| protected HttpRequestValues createRequestValues(HttpMethod httpMethod, URI uri, UriBuilderFactory uriBuilderFactory, String uriTemplate, Map<String, String> uriVars, HttpHeaders headers, MultiValueMap<String, String> cookies, Map<String, Object> attributes, Object bodyValue) Create
| |
| hasBody | back to summary |
|---|---|
| protected boolean hasBody() | |
| hasFormDataContentType | back to summary |
|---|---|
| private boolean hasFormDataContentType() | |
| hasParts | back to summary |
|---|---|
| protected boolean hasParts() | |
| initHeaders | back to summary |
|---|---|
| private HttpHeaders initHeaders() | |
| setAccept | back to summary |
|---|---|
| public HttpRequestValues. Set the media types for the request | |
| setBody | back to summary |
|---|---|
| public <T, P extends Publisher Deprecated for removal since 6.1. in favor of Set the request body as a Reactive Streams Publisher. This is mutually exclusive with, and resets any previously set body value.
| |
| setBodyValue | back to summary |
|---|---|
| public void setBodyValue(Object bodyValue) Set the request body as an Object to be serialized. | |
| setContentType | back to summary |
|---|---|
| public HttpRequestValues. Set the media type for the request | |
| setHttpMethod | back to summary |
|---|---|
| public HttpRequestValues. Set the HTTP method for the request. | |
| setUri | back to summary |
|---|---|
| public HttpRequestValues. Set the URL to use. When set, this overrides the
URI template from the
| |
| setUriBuilderFactory | back to summary |
|---|---|
| public HttpRequestValues. Set the
| |
| setUriTemplate | back to summary |
|---|---|
| public HttpRequestValues. Set the request URL as a String template. | |
| setUriVariable | back to summary |
|---|---|
| public HttpRequestValues. Add a URI variable name-value pair. | |