public interface

Transport

com.sforce.ws.transport.Transport
Known Indirect Subclasses

Class Overview

This interface defines a Transport.

Summary

Public Methods
abstract OutputStream connect(String url, String soapAction)
Connect to the specified endpoint.
abstract InputStream getContent()
returns the response from the endpoint.
abstract boolean isSuccessful()
checks whether the response from the remote server is successful or not.
abstract void setConfig(ConnectorConfig config)

Public Methods

public abstract OutputStream connect (String url, String soapAction)

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

public abstract InputStream 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

public abstract boolean isSuccessful ()

checks whether the response from the remote server is successful or not.

Returns
  • true if the call was successful

public abstract void setConfig (ConnectorConfig config)

Parameters
config