Package io.freefair.spring.okhttp.client
Class OkHttpClientRequest
java.lang.Object
org.springframework.http.client.AbstractClientHttpRequest
io.freefair.spring.okhttp.client.OkHttpClientRequest
- All Implemented Interfaces:
- org.springframework.http.client.ClientHttpRequest,- org.springframework.http.HttpMessage,- org.springframework.http.HttpOutputMessage,- org.springframework.http.HttpRequest,- org.springframework.http.StreamingHttpOutputMessage
public class OkHttpClientRequest
extends org.springframework.http.client.AbstractClientHttpRequest
implements org.springframework.http.StreamingHttpOutputMessage
OkHttp based 
ClientHttpRequest implementation.- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.springframework.http.StreamingHttpOutputMessageorg.springframework.http.StreamingHttpOutputMessage.Body
- 
Constructor SummaryConstructorsConstructorDescriptionOkHttpClientRequest(OkHttpClient okHttpClient, URI uri, org.springframework.http.HttpMethod method) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected org.springframework.http.client.ClientHttpResponseexecuteInternal(org.springframework.http.HttpHeaders headers) protected OutputStreamgetBodyInternal(org.springframework.http.HttpHeaders headers) org.springframework.http.HttpMethodgetURI()voidsetBody(org.springframework.http.StreamingHttpOutputMessage.Body body) Methods inherited from class org.springframework.http.client.AbstractClientHttpRequestassertNotExecuted, execute, getBody, getHeadersMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.http.HttpMessagegetHeadersMethods inherited from interface org.springframework.http.HttpOutputMessagegetBody
- 
Constructor Details- 
OkHttpClientRequestpublic OkHttpClientRequest(OkHttpClient okHttpClient, URI uri, org.springframework.http.HttpMethod method) 
 
- 
- 
Method Details- 
getMethod- Specified by:
- getMethodin interface- org.springframework.http.HttpRequest
 
- 
getURI- Specified by:
- getURIin interface- org.springframework.http.HttpRequest
 
- 
setBody- Specified by:
- setBodyin interface- org.springframework.http.StreamingHttpOutputMessage
 
- 
getBodyInternal- Specified by:
- getBodyInternalin class- org.springframework.http.client.AbstractClientHttpRequest
 
- 
executeInternalprotected org.springframework.http.client.ClientHttpResponse executeInternal(org.springframework.http.HttpHeaders headers) throws IOException - Specified by:
- executeInternalin class- org.springframework.http.client.AbstractClientHttpRequest
- Throws:
- IOException
 
 
-