public abstract class AbstractClientHttpRequest extends java.lang.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 |
|---|---|
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.
|
java.io.OutputStream |
getBody()
Return the body of the message as an output stream.
|
protected abstract java.io.OutputStream |
getBodyInternal(HttpHeaders headers)
Abstract template method that returns the body.
|
Cookies |
getCookies()
TODO ..
|
HttpHeaders |
getHeaders()
Return the headers of this message.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMethod, getURIpublic final HttpHeaders getHeaders()
HttpMessagegetHeaders in interface HttpMessagepublic final java.io.OutputStream getBody()
throws java.io.IOException
HttpOutputMessagegetBody in interface HttpOutputMessagejava.io.IOException - in case of I/O Errorspublic Cookies getCookies()
HttpMessagegetCookies in interface HttpMessagepublic final ClientHttpResponse execute() throws java.io.IOException
ClientHttpRequestClientHttpResponse that can be read.execute in interface ClientHttpRequestjava.io.IOException - in case of I/O errorsprotected abstract java.io.OutputStream getBodyInternal(HttpHeaders headers) throws java.io.IOException
headers - the HTTP headersjava.io.IOExceptionprotected abstract ClientHttpResponse executeInternal(HttpHeaders headers) throws java.io.IOException
headers - the HTTP headersjava.io.IOException