| Constructor and Description |
|---|
GaeHttpTransport() |
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
connect(String endpoint,
HashMap<String,String> headers) |
OutputStream |
connect(String uri,
HashMap<String,String> httpHeaders,
boolean enableCompression) |
OutputStream |
connect(String uri,
String soapAction)
Connect to the specified endpoint.
|
static com.google.appengine.api.urlfetch.HTTPRequest |
createRequest(ConnectorConfig config,
URL url,
Map<String,String> httpHeaders) |
static com.google.appengine.api.urlfetch.HTTPRequest |
createRequest(ConnectorConfig config,
URL url,
Map<String,String> httpHeaders,
boolean enableCompression) |
InputStream |
getContent()
returns the response from the endpoint.
|
boolean |
isSuccessful()
checks whether the response from the remote server is successful or not.
|
void |
setConfig(ConnectorConfig config) |
public void setConfig(ConnectorConfig config)
public OutputStream connect(String uri, String soapAction) throws IOException
Transportconnect in interface Transporturi - endpoint addresssoapAction - soap actionIOException - failed to connect to the endpointpublic OutputStream connect(String endpoint, HashMap<String,String> headers) throws IOException
connect in interface TransportIOExceptionpublic OutputStream connect(String uri, HashMap<String,String> httpHeaders, boolean enableCompression) throws IOException
connect in interface TransportIOExceptionpublic static com.google.appengine.api.urlfetch.HTTPRequest createRequest(ConnectorConfig config, URL url, Map<String,String> httpHeaders) throws IOException
IOExceptionpublic static com.google.appengine.api.urlfetch.HTTPRequest createRequest(ConnectorConfig config, URL url, Map<String,String> httpHeaders, boolean enableCompression) throws IOException
IOExceptionpublic InputStream getContent() throws IOException
TransportgetContent in interface TransportIOException - failed to get contentpublic boolean isSuccessful()
TransportisSuccessful in interface TransportCopyright © 2020. All rights reserved.