public class ClientWebRequest extends Object
The request body is provided through a Publisher<Object>
where the
type of each Object is indicated through a ResolvableType
which
subsequently is used to correctly serialize into the
Publisher<DataBuffer>
actually written to request body.
Modifier and Type | Field and Description |
---|---|
protected org.reactivestreams.Publisher<?> |
body |
protected ResolvableType |
elementType |
protected HttpHeaders |
httpHeaders |
protected HttpMethod |
httpMethod |
protected URI |
url |
Constructor and Description |
---|
ClientWebRequest(HttpMethod httpMethod,
URI url) |
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<?> |
getBody() |
MultiValueMap<String,HttpCookie> |
getCookies() |
ResolvableType |
getElementType() |
HttpHeaders |
getHttpHeaders() |
HttpMethod |
getMethod() |
URI |
getUrl() |
void |
setBody(org.reactivestreams.Publisher<?> body) |
void |
setCookies(MultiValueMap<String,HttpCookie> cookies) |
void |
setElementType(ResolvableType elementType) |
void |
setHttpHeaders(HttpHeaders httpHeaders) |
protected final HttpMethod httpMethod
protected final URI url
protected HttpHeaders httpHeaders
protected org.reactivestreams.Publisher<?> body
protected ResolvableType elementType
public ClientWebRequest(HttpMethod httpMethod, URI url)
public HttpMethod getMethod()
public URI getUrl()
public HttpHeaders getHttpHeaders()
public void setHttpHeaders(HttpHeaders httpHeaders)
public MultiValueMap<String,HttpCookie> getCookies()
public void setCookies(MultiValueMap<String,HttpCookie> cookies)
public org.reactivestreams.Publisher<?> getBody()
public void setBody(org.reactivestreams.Publisher<?> body)
public ResolvableType getElementType()
public void setElementType(ResolvableType elementType)