Top Description Methods
org.springframework.http.client

public Interface ClientHttpRequest

extends HttpRequest, HttpOutputMessage
Known Direct Implementers
org.springframework.http.client.AbstractClientHttpRequest
Imports
java.io.IOException, org.springframework.http.HttpMethod, .HttpOutputMessage, .HttpRequest

Represents a client-side HTTP request. Created via an implementation of the ClientHttpRequestFactory.

A ClientHttpRequest can be executed, receiving a ClientHttpResponse which can be read from.

Author
Arjen Poutsma
Since
3.0
See Also
ClientHttpRequestFactory#createRequest(java.net.URI, HttpMethod)

Method Summary

Modifier and TypeMethod and Description
public ClientHttpResponse

Returns:

the response result of the execution
execute
()

Execute this request, resulting in a ClientHttpResponse that can be read.

Inherited from org.springframework.http.HttpOutputMessage:
getBody
Inherited from org.springframework.http.HttpRequest:
getMethodgetURI

Method Detail

executeback to summary
public ClientHttpResponse execute() throws IOException

Execute this request, resulting in a ClientHttpResponse that can be read.

Returns:ClientHttpResponse

the response result of the execution

Exceptions
IOException:
in case of I/O errors