retrofit.client
Class OkClient

java.lang.Object
  extended by retrofit.client.UrlConnectionClient
      extended by retrofit.client.OkClient
All Implemented Interfaces:
Client

public class OkClient
extends UrlConnectionClient

Retrofit client that uses OkHttp for communication.


Nested Class Summary
 
Nested classes/interfaces inherited from interface retrofit.client.Client
Client.Provider
 
Constructor Summary
OkClient()
           
OkClient(com.squareup.okhttp.OkHttpClient client)
           
 
Method Summary
protected  HttpURLConnection openConnection(Request request)
           
 
Methods inherited from class retrofit.client.UrlConnectionClient
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OkClient

public OkClient()

OkClient

public OkClient(com.squareup.okhttp.OkHttpClient client)
Method Detail

openConnection

protected HttpURLConnection openConnection(Request request)
                                    throws IOException
Overrides:
openConnection in class UrlConnectionClient
Throws:
IOException


Copyright © 2013 Square, Inc.. All Rights Reserved.