| java.lang.Object |
| ↳ |
com.sforce.ws.transport.JdkHttpTransport |
Class Overview
This class is an implementation of Transport using the build in
JDK URLConnection.
Summary
| Nested Classes |
|
class |
JdkHttpTransport.LimitingInputStream |
|
|
class |
JdkHttpTransport.LimitingOutputStream |
|
|
class |
JdkHttpTransport.MessageHandlerOutputStream |
|
|
class |
JdkHttpTransport.TeeInputStream |
|
|
class |
JdkHttpTransport.TeeOutputStream |
|
| Public Methods |
|
OutputStream
|
connect(String uri, HashMap<String, String> httpHeaders)
|
|
OutputStream
|
connect(String uri, HashMap<String, String> httpHeaders, boolean enableCompression)
|
|
OutputStream
|
connect(String uri, String soapAction)
Connect to the specified endpoint.
|
|
static
HttpURLConnection
|
createConnection(ConnectorConfig config, URL url, HashMap<String, String> httpHeaders)
|
|
static
HttpURLConnection
|
createConnection(ConnectorConfig config, URL url, HashMap<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)
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
com.sforce.ws.transport.Transport
|
abstract
OutputStream
|
connect(String url, String soapAction)
Connect to the specified endpoint.
|
|
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)
|
|
Fields
private
HttpURLConnection
connection
private
boolean
successful
Public Constructors
public
JdkHttpTransport
()
Public Methods
public
OutputStream
connect
(String uri, HashMap<String, String> httpHeaders)
public
OutputStream
connect
(String uri, HashMap<String, String> httpHeaders, boolean enableCompression)
Parameters
| uri
| |
| httpHeaders
| |
| enableCompression
| |
public
OutputStream
connect
(String uri, String soapAction)
Connect to the specified endpoint.
Parameters
| uri
| Endpoint address |
| soapAction
| Soap action |
Returns
- output stream that can be used to send response
public
static
HttpURLConnection
createConnection
(ConnectorConfig config, URL url, HashMap<String, String> httpHeaders)
public
static
HttpURLConnection
createConnection
(ConnectorConfig config, URL url, HashMap<String, String> httpHeaders, boolean enableCompression)
Parameters
| config
| |
| url
| |
| httpHeaders
| |
| enableCompression
| |
public
InputStream
getContent
()
returns the response from the endpoint. This method must be called after
a connect call.
Returns
- response or error stream.
public
boolean
isSuccessful
()
checks whether the response from the remote server is successful or not.
Returns
- true if the call was successful