retrofit.client
Class UrlConnectionClient

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

public class UrlConnectionClient
extends Object
implements Client

Retrofit client that uses HttpURLConnection for communication.


Nested Class Summary
 
Nested classes/interfaces inherited from interface retrofit.client.Client
Client.Provider
 
Constructor Summary
UrlConnectionClient()
           
 
Method Summary
 Response execute(Request request)
          Synchronously execute an HTTP represented by request and encapsulate all response data into a Response instance.
protected  HttpURLConnection openConnection(Request request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlConnectionClient

public UrlConnectionClient()
Method Detail

execute

public Response execute(Request request)
                 throws IOException
Description copied from interface: Client
Synchronously execute an HTTP represented by request and encapsulate all response data into a Response instance.

Specified by:
execute in interface Client
Throws:
IOException

openConnection

protected HttpURLConnection openConnection(Request request)
                                    throws IOException
Throws:
IOException


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