public abstract class AbstractClientHttpRequest extends Object implements ClientHttpRequest
ClientHttpRequest that makes sure that headers
 and body are not written multiple times.| Constructor and Description | 
|---|
AbstractClientHttpRequest()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
assertNotExecuted()
Assert that this request has not been executed yet. 
 | 
ClientHttpResponse | 
execute()
Execute this request, resulting in a  
ClientHttpResponse that can be read. | 
protected abstract ClientHttpResponse | 
executeInternal(HttpHeaders headers)
Abstract template method that writes the given headers and content to the HTTP request. 
 | 
OutputStream | 
getBody()
Return the body of the message as an output stream. 
 | 
protected abstract OutputStream | 
getBodyInternal(HttpHeaders headers)
Abstract template method that returns the body. 
 | 
HttpHeaders | 
getHeaders()
Return the headers of this message. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMethod, getMethodValue, getURIpublic final HttpHeaders getHeaders()
HttpMessagegetHeaders in interface HttpMessagenull)public final OutputStream getBody() throws IOException
HttpOutputMessagegetBody in interface HttpOutputMessagenull)IOException - in case of I/O errorspublic final ClientHttpResponse execute() throws IOException
ClientHttpRequestClientHttpResponse that can be read.execute in interface ClientHttpRequestIOException - in case of I/O errorsprotected void assertNotExecuted()
IllegalStateException - if this request has been executedprotected abstract OutputStream getBodyInternal(HttpHeaders headers) throws IOException
headers - the HTTP headersIOExceptionprotected abstract ClientHttpResponse executeInternal(HttpHeaders headers) throws IOException
headers - the HTTP headersIOException