Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.messaging.transport
Interface MessageListener

All Superinterfaces:
Listener
All Known Implementing Classes:
XMSMessageListener

public interface MessageListener
extends Listener

The message listener interface. A message listener must register itself to a messenger to receive messages from devices.

Author:
jxiang

Field Summary

 

Fields inherited from interface oracle.panama.messaging.transport.Listener
FAILED, IGNORED, SUCCEEDED, UNKNOWN

 

Method Summary
 int onMessage(java.lang.String address, DeviceInfo info, java.lang.String destination, Message message)
          The on-message call-back.

 

Method Detail

onMessage

public int onMessage(java.lang.String address,
DeviceInfo info,
                     java.lang.String destination,
Message message)
The on-message call-back.
Parameters:
address - the address of the device the message was from.
info - the information of the device the message was from.
destination - the destination address.
message - the message sent to the listener.
Returns:
the processing status.

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.