Package com.sforce.ws.transport
Interface Transport
- All Known Implementing Classes:
GaeHttpTransport,JdkHttpTransport
public interface Transport
This interface defines a Transport.
- Since:
- 1.0 Nov 30, 2005
- Version:
- 1.0
- Author:
- http://cheenath.com
-
Method Summary
Modifier and TypeMethodDescriptionConnect to the specified endpoint.returns the response from the endpoint.booleanchecks whether the response from the remote server is successful or not.voidsetConfig(ConnectorConfig config)
-
Method Details
-
setConfig
-
connect
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
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
- Throws:
IOException
-
connect
OutputStream connect(String endpoint, HashMap<String, String> httpHeaders, boolean b) throws IOException- Throws:
IOException
-