Package com.sforce.ws.transport
Interface Transport
-
- All Known Implementing Classes:
GaeHttpTransport,JdkHttpTransport
public interface TransportThis interface defines a Transport.- Since:
- 1.0 Nov 30, 2005
- Version:
- 1.0
- Author:
- http://cheenath.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OutputStreamconnect(String url, String soapAction)Connect to the specified endpoint.OutputStreamconnect(String endpoint, HashMap<String,String> headers)OutputStreamconnect(String endpoint, HashMap<String,String> httpHeaders, boolean b)InputStreamgetContent()returns the response from the endpoint.booleanisSuccessful()checks whether the response from the remote server is successful or not.voidsetConfig(ConnectorConfig config)
-
-
-
Method Detail
-
setConfig
void setConfig(ConnectorConfig config)
-
connect
OutputStream connect(String url, String soapAction) throws IOException
Connect to the specified endpoint.- Parameters:
url- endpoint addresssoapAction- soap action- Returns:
- output stream that can be used to send response
- Throws:
IOException- failed to connect to the endpoint
-
getContent
InputStream getContent() throws IOException
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
-
isSuccessful
boolean isSuccessful()
checks whether the response from the remote server is successful or not.- Returns:
- true if the call was successful
-
connect
OutputStream connect(String endpoint, HashMap<String,String> headers) throws IOException
- Throws:
IOException
-
connect
OutputStream connect(String endpoint, HashMap<String,String> httpHeaders, boolean b) throws IOException
- Throws:
IOException
-
-