| Constructor and Description |
|---|
JdkHttpTransport() |
JdkHttpTransport(ConnectorConfig config) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public JdkHttpTransport()
public JdkHttpTransport(ConnectorConfig config)
public void setConfig(ConnectorConfig config)
public OutputStream connect(String uri, HashMap<String,String> httpHeaders) throws IOException
connect in interface TransportIOExceptionpublic OutputStream connect(String uri, HashMap<String,String> httpHeaders, boolean enableCompression) throws IOException
connect in interface TransportIOExceptionpublic OutputStream connect(String uri, String soapAction) throws IOException
Transportconnect in interface Transporturi - endpoint addresssoapAction - soap actionIOException - failed to connect to the endpointpublic static HttpURLConnection createConnection(ConnectorConfig config, URL url, HashMap<String,String> httpHeaders) throws IOException
IOExceptionpublic static HttpURLConnection createConnection(ConnectorConfig config, URL url, HashMap<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 © 2015. All Rights Reserved.