|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sforce.ws.transport.GaeHttpTransport
public class GaeHttpTransport
This class is an implementation of Transport using the Google AppEngine urlFetch
| Constructor Summary | |
|---|---|
GaeHttpTransport()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GaeHttpTransport()
| Method Detail |
|---|
public void setConfig(ConnectorConfig config)
setConfig in interface Transport
public OutputStream connect(String uri,
String soapAction)
throws IOException
Transport
connect in interface Transporturi - endpoint addresssoapAction - soap action
IOException - failed to connect to the endpoint
public OutputStream connect(String endpoint,
HashMap<String,String> headers)
throws IOException
connect in interface TransportIOException
public OutputStream connect(String uri,
HashMap<String,String> httpHeaders,
boolean enableCompression)
throws IOException
connect in interface TransportIOException
public static com.google.appengine.api.urlfetch.HTTPRequest createRequest(ConnectorConfig config,
URL url,
Map<String,String> httpHeaders)
throws IOException
IOException
public static com.google.appengine.api.urlfetch.HTTPRequest createRequest(ConnectorConfig config,
URL url,
Map<String,String> httpHeaders,
boolean enableCompression)
throws IOException
IOException
public InputStream getContent()
throws IOException
Transport
getContent in interface TransportIOException - failed to get contentpublic boolean isSuccessful()
Transport
isSuccessful in interface Transport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||