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 org.springframework.core.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() |
org.springframework.util.MultiValueMap<String,HttpCookie> |
getCookies() |
org.springframework.core.ResolvableType |
getElementType() |
HttpHeaders |
getHttpHeaders() |
HttpMethod |
getMethod() |
URI |
getUrl() |
void |
setBody(org.reactivestreams.Publisher<?> body) |
void |
setCookies(org.springframework.util.MultiValueMap<String,HttpCookie> cookies) |
void |
setElementType(org.springframework.core.ResolvableType elementType) |
void |
setHttpHeaders(HttpHeaders httpHeaders) |
protected final HttpMethod httpMethod
protected final URI url
protected HttpHeaders httpHeaders
protected org.reactivestreams.Publisher<?> body
protected org.springframework.core.ResolvableType elementType
public ClientWebRequest(HttpMethod httpMethod, URI url)
public HttpMethod getMethod()
public URI getUrl()
public HttpHeaders getHttpHeaders()
public void setHttpHeaders(HttpHeaders httpHeaders)
public org.springframework.util.MultiValueMap<String,HttpCookie> getCookies()
public void setCookies(org.springframework.util.MultiValueMap<String,HttpCookie> cookies)
public org.reactivestreams.Publisher<?> getBody()
public void setBody(org.reactivestreams.Publisher<?> body)
public org.springframework.core.ResolvableType getElementType()
public void setElementType(org.springframework.core.ResolvableType elementType)