Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.messaging.transport
Interface DriverController


public interface DriverController

The transport driver controller interface. It can be used to get the driver listener.

Author:
jxiang

Method Summary
 MessageListener getMessageListener()
          Get the message listener, which is an instance of the message listener interface.
 SmartMsgEncoder[] getSmartMsgEncoders()
          Get all the SmartMsgEncoder, which can be used to encode GSM/CDMA smart message.
 StatusListener getStatusListener()
          Get the status listener, which is an instance of the status listener interface.
 java.lang.String getVersion()
          Get the version of this transport system.

 

Method Detail

getVersion

public java.lang.String getVersion()
Get the version of this transport system.
Returns:
the transport version.

getMessageListener

public MessageListener getMessageListener()
Get the message listener, which is an instance of the message listener interface. This listener should be used by all drivers to report received messages to the transport.
Returns:
the driver message listener instance.

getStatusListener

public StatusListener getStatusListener()
Get the status listener, which is an instance of the status listener interface. This listener should be used by all drivers to report received positive status reports to the transport.
Returns:
the driver status listener instance.

getSmartMsgEncoders

public SmartMsgEncoder[] getSmartMsgEncoders()
Get all the SmartMsgEncoder, which can be used to encode GSM/CDMA smart message. The encoder will be applied in the order till (1) a smart message is encoded successfully, or (2) an exception is caught. If an encoder doesn't know how to encode somehow, it should return null.
Returns:
all the SmartMsgEncoder instances.

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.