| com.sforce.ws.transport.Transport |
Known Indirect Subclasses
| JdkHttpTransport |
This class is an implementation of Transport using the build in
JDK URLConnection. |
|
Class Overview
This interface defines a Transport.
Summary
| Public Methods |
|
abstract
OutputStream
|
connect(String url, HashMap<String, String> headers)
Connect to the specified endpoint.
|
|
abstract
OutputStream
|
connect(String url, HashMap<String, String> headers, boolean compress)
Connect to the specified endpoint.
|
|
abstract
OutputStream
|
connect(String url, String soapAction)
Connect to the specified endpoint.
|
|
abstract
HttpURLConnection
|
createConnection(String url, HashMap<String, String> httpHeaders)
Create a connection
|
|
abstract
URL
|
createURL(String url)
Create a URL
|
|
abstract
InputStream
|
getContent()
returns the response from the endpoint.
|
|
abstract
boolean
|
isSuccessful()
checks whether the response from the remote server is successful or not.
|
|
abstract
void
|
setConfig(ConnectorConfig config)
|
Public Methods
public
abstract
OutputStream
connect
(String url, HashMap<String, String> headers)
Connect to the specified endpoint.
Parameters
| url
| Endpoint address |
| headers
| Header map |
Returns
- output stream that can be used to send response
Throws
| IOException
| failed to connect to the endpoint
|
public
abstract
OutputStream
connect
(String url, HashMap<String, String> headers, boolean compress)
Connect to the specified endpoint.
Parameters
| url
| Endpoint address |
| headers
| Header map |
| compress
| |
Returns
- output stream that can be used to send response
Throws
| IOException
| failed to connect to the endpoint
|
public
abstract
OutputStream
connect
(String url, String soapAction)
Connect to the specified endpoint.
Parameters
| url
| Endpoint address |
| soapAction
| Soap action |
Returns
- output stream that can be used to send response
Throws
| IOException
| failed to connect to the endpoint
|
public
abstract
HttpURLConnection
createConnection
(String url, HashMap<String, String> httpHeaders)
public
abstract
URL
createURL
(String url)
public
abstract
InputStream
getContent
()
returns the response from the endpoint. This method must be called after
a connect call.
Returns
- response or error stream.
Throws
| IOException
| failed to get content
|
public
abstract
boolean
isSuccessful
()
checks whether the response from the remote server is successful or not.
Returns
- true if the call was successful