Client.Provider| Constructor and Description |
|---|
UrlFetchClient() |
UrlFetchClient(com.google.appengine.api.urlfetch.URLFetchService urlFetchService) |
| 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 com.google.appengine.api.urlfetch.HTTPResponse |
execute(com.google.appengine.api.urlfetch.URLFetchService urlFetchService,
com.google.appengine.api.urlfetch.HTTPRequest request)
Execute the specified
request using the provided urlFetchService. |
public UrlFetchClient()
public UrlFetchClient(com.google.appengine.api.urlfetch.URLFetchService urlFetchService)
public Response execute(Request request) throws IOException
Clientrequest and encapsulate all response data
into a Response instance.
Note: If the request has a body, its length and mime type will have already been added to the
header list as Content-Length and Content-Type, respectively. Do NOT alter
these values as they might have been set as a result of an application-level configuration.
execute in interface ClientIOExceptionprotected com.google.appengine.api.urlfetch.HTTPResponse execute(com.google.appengine.api.urlfetch.URLFetchService urlFetchService,
com.google.appengine.api.urlfetch.HTTPRequest request)
throws IOException
request using the provided urlFetchService.IOExceptionCopyright © 2015 Square, Inc.. All Rights Reserved.