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
 OutputStream connect(String endpoint, HashMap<String,String> headers)
           
 OutputStream connect(String endpoint, HashMap<String,String> httpHeaders, boolean b)
           
 OutputStream connect(String url, String soapAction)
          Connect to the specified endpoint.
 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)
           
 

Method Detail

setConfig

void setConfig(ConnectorConfig config)

connect

OutputStream connect(String url,
                     String soapAction)
                     throws IOException
Connect to the specified endpoint.

Parameters:
url - endpoint address
soapAction - 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


Copyright © 2014. All Rights Reserved.