|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The driver interface. Driver is used by Messenger to access devices. More devices can be supported by the transport system via plug in more drivers.
Field Summary | |
static int |
FAILED Valid initialization status. |
static int |
MESSAGE_ID_MAX_LENGTH The maximum length in characters the returned message id can be. |
static int |
RECEIVE |
static int |
SEND |
static int |
SEND_RECEIVE |
Method Summary | |
void |
destroy() Destroy the driver. |
java.lang.String |
getInfo() Get additional information of the driver. |
Parameter[] |
getParameters() Get the expected parameter list. |
void |
getStatus(java.lang.String mid) Get the sending status of a message. |
void |
getStatus(java.lang.String[] mids) Get the sending statuses of a list of messages. |
java.lang.String |
getVersion() Get the version of the driver. |
int |
init(java.util.Properties properties) Initialize the driver. |
boolean |
queryNotifying() Check if query is required to get the notification. |
boolean |
queryTracking() Check if query is required to track the sending status. |
void |
receive() Drivers implement this method to perform whatever is appropriate for their particular protocols to receive messages. |
java.lang.String[] |
send(java.lang.String[] dtypes, java.lang.String[] addresses, int[] modes, java.lang.String encoding, int tracking, int expiration, int reliability, int priority, java.lang.String fromAddr, java.lang.String replyToAddr, java.lang.String mid, Message message) Send a message to a list of addresses with this driver. |
java.lang.String[] |
send(java.lang.String dtype, java.lang.String[] addresses, int[] modes, java.lang.String encoding, int tracking, int expiration, int reliability, int priority, java.lang.String fromAddr, java.lang.String replyToAddr, java.lang.String mid, Message message) Send a message to a list of addresses with this driver. |
java.lang.String |
send(java.lang.String dtype, java.lang.String address, int mode, java.lang.String encoding, int tracking, int expiration, int reliability, int priority, java.lang.String fromAddr, java.lang.String replyToAddr, java.lang.String mid, Message message) Send a message to a single address with this driver. |
Field Detail |
public static final int FAILED
public static final int SEND
public static final int RECEIVE
public static final int SEND_RECEIVE
public static final int MESSAGE_ID_MAX_LENGTH
Method Detail |
public int init(java.util.Properties properties)
properties
- the driver's properties.public Parameter[] getParameters()
public void destroy()
public java.lang.String getVersion()
public java.lang.String getInfo()
public java.lang.String send(java.lang.String dtype, java.lang.String address, int mode, java.lang.String encoding, int tracking, int expiration, int reliability, int priority, java.lang.String fromAddr, java.lang.String replyToAddr, java.lang.String mid, Message message) throws DriverException
MESSAGE_ID_MAX_LENGTH
characters.dtype
- the delivery type of the destination.address
- the address to send to.mode
- the delivery mode.encoding
- the encoding of the device.tracking
- the tracking level.expiration
- the expiration time.reliability
- the reliability level.priority
- the priority level.fromAddr
- the from-address.replyToAddr
- the reply-to-address.mid
- the unique id of the message.message
- the message to send.DriverException.
DriverException
public java.lang.String[] send(java.lang.String dtype, java.lang.String[] addresses, int[] modes, java.lang.String encoding, int tracking, int expiration, int reliability, int priority, java.lang.String fromAddr, java.lang.String replyToAddr, java.lang.String mid, Message message) throws DriverException
dtype
- the delivery type of all destinations.addresses
- the addresses to send to.modes
- the delivery modes.encoding
- the encoding of the device.tracking
- the tracking level.expiration
- the expiration time.reliability
- the reliability level.priority
- the priority level.fromAddr
- the from-address.replyToAddr
- the reply-to-address.mid
- the unique id of the message.message
- the message to send.DriverException.
DriverException
public java.lang.String[] send(java.lang.String[] dtypes, java.lang.String[] addresses, int[] modes, java.lang.String encoding, int tracking, int expiration, int reliability, int priority, java.lang.String fromAddr, java.lang.String replyToAddr, java.lang.String mid, Message message) throws DriverException
dtypes
- the delivery types of correspondent destinations.addresses
- the addresses to send to.modes
- the delivery modes.encoding
- the encoding of the device.tracking
- the tracking level.expiration
- the expiration time.reliability
- the reliability level.priority
- the priority level.fromAddr
- the from-address.replyToAddr
- the reply-to-address.mid
- the unique id of the message.message
- the message to send.DriverException.
DriverException
public void getStatus(java.lang.String mid)
mid
- the id of the message.public void getStatus(java.lang.String[] mids)
mids
- the ids of these messages.public boolean queryNotifying()
public boolean queryTracking()
public void receive() throws DriverException
DriverException.
DriverException
|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |