|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sforce.ws.transport.JdkHttpTransport
public class JdkHttpTransport
This class is an implementation of Transport using the build in JDK URLConnection.
| Constructor Summary | |
|---|---|
JdkHttpTransport()
|
|
JdkHttpTransport(ConnectorConfig config)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JdkHttpTransport()
public JdkHttpTransport(ConnectorConfig config)
| Method Detail |
|---|
public void setConfig(ConnectorConfig config)
setConfig in interface Transport
public OutputStream connect(String uri,
HashMap<String,String> httpHeaders)
throws IOException
connect in interface TransportIOException
public OutputStream connect(String uri,
HashMap<String,String> httpHeaders,
boolean enableCompression)
throws IOException
connect in interface TransportIOException
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 static HttpURLConnection createConnection(ConnectorConfig config,
URL url,
HashMap<String,String> httpHeaders)
throws IOException
IOException
public static HttpURLConnection createConnection(ConnectorConfig config,
URL url,
HashMap<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 | |||||||||