|
Spring for Android | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.http.client.AbstractClientHttpRequest
public abstract class AbstractClientHttpRequest
Abstract base for ClientHttpRequest that makes sure that headers and body are not written multiple times.
| Constructor Summary | |
|---|---|
AbstractClientHttpRequest()
|
|
| Method Summary | |
|---|---|
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. |
HttpHeaders |
getHeaders()
Return the headers of this message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.http.HttpRequest |
|---|
getMethod, getURI |
| Constructor Detail |
|---|
public AbstractClientHttpRequest()
| Method Detail |
|---|
public final HttpHeaders getHeaders()
HttpMessage
getHeaders in interface HttpMessage
public final java.io.OutputStream getBody()
throws java.io.IOException
HttpOutputMessage
getBody in interface HttpOutputMessagejava.io.IOException - in case of I/O Errors
public final ClientHttpResponse execute()
throws java.io.IOException
ClientHttpRequestClientHttpResponse that can be read.
execute in interface ClientHttpRequestjava.io.IOException - in case of I/O errors
protected abstract java.io.OutputStream getBodyInternal(HttpHeaders headers)
throws java.io.IOException
headers - the HTTP headers
java.io.IOException
protected abstract ClientHttpResponse executeInternal(HttpHeaders headers)
throws java.io.IOException
headers - the HTTP headers
java.io.IOException
|
Spring for Android | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||