org.csapi.jr.se.dsc
Interface Connect

All Superinterfaces:
Activity, CsapiInterface, java.io.Serializable

public interface Connect
extends Activity

This interface represents a Connect activity object.


Field Summary
 
Fields inherited from interface org.csapi.jr.se.Activity
ACTIVE_STATE, IDLE_STATE, INVALID_STATE
 
Method Summary
 void addConnectListener(ConnectListener connectListener)
          Adds a ConnectListener which is interested in events generated by the Connect.
 void connectReq(DataSessionReportRequest[] responseRequested, Address targetAddress)
          Invokes the connectReq() method on the Parlay Gateway.
 DataSession getDataSession()
          Returns a reference to the DataSession responsible for creation of the Connect.
 void removeConnectListener(ConnectListener connectListener)
          Removes a ConnectListener which is no longer interested events generated by the Connect.
 
Methods inherited from interface org.csapi.jr.se.Activity
addActivityStateChangeListener, getState, removeActivityStateChangeListener
 

Method Detail

getDataSession

public DataSession getDataSession()
Returns a reference to the DataSession responsible for creation of the Connect.

Returns:
A reference to the DataSession responsible for creation of the Connect.

addConnectListener

public void addConnectListener(ConnectListener connectListener)
Adds a ConnectListener which is interested in events generated by the Connect.

Parameters:
connectListener - A reference to the ConnectListener which is to be added as a listener.

removeConnectListener

public void removeConnectListener(ConnectListener connectListener)
Removes a ConnectListener which is no longer interested events generated by the Connect.

Parameters:
connectListener - A reference to the ConnectListener which is to be removed as a listener.

connectReq

public void connectReq(DataSessionReportRequest[] responseRequested,
                       Address targetAddress)
                throws PlatformException,
                       java.lang.IllegalStateException,
                       CommonException,
                       InvalidNetworkStateException,
                       InvalidAddressException
Invokes the connectReq() method on the Parlay Gateway.

Throws:
PlatformException
java.lang.IllegalStateException
CommonException
InvalidNetworkStateException
InvalidAddressException