|
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.SimpleClientHttpRequestFactory
org.springframework.http.client.OkHttpClientHttpRequestFactory
public class OkHttpClientHttpRequestFactory
ClientHttpRequestFactory implementation that uses OkHttp to create requests.
OkHttpClient| Constructor Summary | |
|---|---|
OkHttpClientHttpRequestFactory()
|
|
| Method Summary | |
|---|---|
protected java.net.HttpURLConnection |
openConnection(java.net.URL url,
java.net.Proxy proxy)
Opens and returns a connection to the given URL. |
| Methods inherited from class org.springframework.http.client.SimpleClientHttpRequestFactory |
|---|
createRequest, prepareConnection, setBufferRequestBody, setChunkSize, setConnectTimeout, setOutputStreaming, setProxy, setReadTimeout, setReuseConnection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OkHttpClientHttpRequestFactory()
| Method Detail |
|---|
protected java.net.HttpURLConnection openConnection(java.net.URL url,
java.net.Proxy proxy)
throws java.io.IOException
SimpleClientHttpRequestFactoryThe default implementation uses the given proxy - if any - to open a connection.
openConnection in class SimpleClientHttpRequestFactoryurl - the URL to open a connection toproxy - the proxy to use, may be null
java.io.IOException - in case of I/O errors
|
Spring for Android | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||