retrofit.client
Class UrlConnectionClient
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UrlConnectionClient
public UrlConnectionClient()
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.