public class UrlConnectionClient extends Object implements Client
HttpURLConnection
for communication.Client.Provider
Constructor and Description |
---|
UrlConnectionClient() |
Modifier and Type | Method and Description |
---|---|
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) |
public Response execute(Request request) throws IOException
Client
request
and encapsulate all response data
into a Response
instance.execute
in interface Client
IOException
protected HttpURLConnection openConnection(Request request) throws IOException
IOException
Copyright © 2013 Square, Inc.. All Rights Reserved.