Class HttpRequestValues.Builder
java.lang.Object
org.springframework.web.service.invoker.HttpRequestValues.Builder
- Enclosing class:
- HttpRequestValues
Builder for 
HttpRequestValues.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddAttribute(String name, Object value) Configure an attribute to associate with the request.Add the given cookie name and values.Add the given header name and values.addRequestParameter(String name, String... values) Add the given request parameter name and values.addRequestPart(String name, Object part) Add a part to a multipart request.<T,P extends Publisher<T>> 
 HttpRequestValues.BuilderaddRequestPart(String name, P publisher, ResolvableType type) Variant ofaddRequestPart(String, Object)that allows the part value to be produced by aPublisher.build()Build theHttpRequestValuesinstance.Set the media types for the requestAcceptheader.<T,P extends Publisher<T>> 
 voidsetBody(P body, ParameterizedTypeReference<T> elementTye) Set the request body as a concrete value to be serialized.voidsetBodyValue(Object bodyValue) Set the request body as a concrete value to be serialized.setContentType(MediaType contentType) Set the media type for the requestContent-Typeheader.setHttpMethod(HttpMethod httpMethod) Set the HTTP method for the request.Set the URL to use.setUriTemplate(String uriTemplate) Set the request URL as a String template.setUriVariable(String name, String value) Add a URI variable name-value pair.
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
setHttpMethodSet the HTTP method for the request.
- 
setUriSet the URL to use. When set, this overrides the URI template from theHttpExchangeannotation.
- 
setUriTemplateSet the request URL as a String template.
- 
setUriVariableAdd a URI variable name-value pair.
- 
setAcceptSet the media types for the requestAcceptheader.
- 
setContentTypeSet the media type for the requestContent-Typeheader.
- 
addHeaderAdd the given header name and values.
- 
addCookieAdd the given cookie name and values.
- 
addRequestParameterAdd the given request parameter name and values.When "content-type"is set to"application/x-www-form-urlencoded", request parameters are encoded in the request body. Otherwise, they are added as URL query parameters.
- 
addRequestPartAdd a part to a multipart request. The part value may be as described inMultipartBodyBuilder.part(String, Object).
- 
addRequestPartpublic <T,P extends Publisher<T>> HttpRequestValues.Builder addRequestPart(String name, P publisher, ResolvableType type) Variant ofaddRequestPart(String, Object)that allows the part value to be produced by aPublisher.
- 
addAttributeConfigure an attribute to associate with the request.- Parameters:
- name- the attribute name
- value- the attribute value
 
- 
setBodyValueSet the request body as a concrete value to be serialized.This is mutually exclusive with, and resets any previously set body Publisher. 
- 
setBodySet the request body as a concrete value to be serialized.This is mutually exclusive with, and resets any previously set body value. 
- 
buildBuild theHttpRequestValuesinstance.
 
-