Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.messaging.xms
Class XMSMessageListener

java.lang.Object
  |
  +--oracle.panama.messaging.xms.XMSMessageListener
All Implemented Interfaces:
Listener, MessageListener

public class XMSMessageListener
extends java.lang.Object
implements MessageListener

Initializes the entry points for various channels (eg. IM) and acts as a listener to receive/forward messages between two conversation entities sent to a common intermediary (an end point). This class also provides access to add/remove such intermediaries (end points) from the underlying Messenger instance.

Author:
kalpak.kothari

Field Summary
static java.lang.String INSTANCE_BASE_NAME
           
 java.lang.String soapPW
           
 java.lang.String soapURL
           
 java.lang.String soapUser
           

 

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

 

Method Summary
 void addEndPoint(java.lang.String address, DeliveryType dt)
          Add an End Point to the Messenger instance
 boolean destroy()
          free the resources allocated by the ManagedServer
static XMSMessageListener getInstance()
           
 XMSSender getXMSSender()
           
 int onMessage(java.lang.String address, DeviceInfo info, java.lang.String destination, Message message)
          The on-message call-back.
 void removeEndPoint(java.lang.String address, DeliveryType dt)
          Remove an End Point from the Messenger instance
 boolean stop()
          SMAgent will call this method to stop the ManagedServer instance

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

INSTANCE_BASE_NAME

public static final java.lang.String INSTANCE_BASE_NAME
See Also:
Constant Field Values

soapURL

public java.lang.String soapURL

soapUser

public java.lang.String soapUser

soapPW

public java.lang.String soapPW
Method Detail

getInstance

public static XMSMessageListener getInstance()

destroy

public boolean destroy()
free the resources allocated by the ManagedServer

stop

public boolean stop()
SMAgent will call this method to stop the ManagedServer instance

onMessage

public int onMessage(java.lang.String address,
DeviceInfo info,
                     java.lang.String destination,
Message message)
The on-message call-back.
Specified by:
onMessage in interface MessageListener
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.

addEndPoint

public void addEndPoint(java.lang.String address,
DeliveryType dt)
Add an End Point to the Messenger instance
Parameters:
address - address to use as end point
dt - delivery type of address

removeEndPoint

public void removeEndPoint(java.lang.String address,
DeliveryType dt)
Remove an End Point from the Messenger instance
Parameters:
address - end point address
dt - delivery type of address

getXMSSender

public XMSSender getXMSSender()

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.