Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.messaging.transport
Class Destination

java.lang.Object
  |
  +--oracle.panama.messaging.transport.Destination

public class Destination
extends java.lang.Object

The destination contains all information of a destination device. It's not just an address. Among these information, address, message info and device info are required, all others are optional. Fail-over is not implemented in v2 yet.

Author:
jxiang

Constructor Summary
Destination()
           

 

Method Summary
 java.lang.String getAddress()
          Get the adress of the device.
 int getDeliveryMode()
          Get the deliver mode of the message.
 DeviceInfo getDeviceInfo()
          Get the info of the device.
 java.lang.String getDriver()
          Get the driver for the destination.
 Destination getFailOverDestination()
          Get the fail-over destination.
 MessageInfo getMessageInfo()
          Get the info of the message.
 void setAddress(java.lang.String address)
          Set the address of the device.
 void setDeliveryMode(int mode)
          Set the deliver mode of the message.
 void setDeviceInfo(DeviceInfo info)
          Set the info of the device.
 void setDriver(java.lang.String driver)
          Set the driver for the destination.
 void setFailOverDestination(Destination dest)
          Set the fail-over destination.
 void setMessageInfo(MessageInfo info)
          Set the info of the message.

 

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

 

Constructor Detail

Destination

public Destination()
Method Detail

getAddress

public java.lang.String getAddress()
Get the adress of the device.
Returns:
the device address.

getDriver

public java.lang.String getDriver()
Get the driver for the destination.
Returns:
the name of the driver to use.

getDeviceInfo

public DeviceInfo getDeviceInfo()
Get the info of the device.
Returns:
the device info.

getMessageInfo

public MessageInfo getMessageInfo()
Get the info of the message.
Returns:
the message info.

getDeliveryMode

public int getDeliveryMode()
Get the deliver mode of the message.
Returns:
the message deliver mode.

getFailOverDestination

public Destination getFailOverDestination()
Get the fail-over destination.
Returns:
the fail-over destination.

setAddress

public void setAddress(java.lang.String address)
Set the address of the device.
Parameters:
address - the device address.

setDriver

public void setDriver(java.lang.String driver)
Set the driver for the destination.
Parameters:
driver - the name of the driver to use.

setDeviceInfo

public void setDeviceInfo(DeviceInfo info)
Set the info of the device.
Parameters:
info - the device info.

setMessageInfo

public void setMessageInfo(MessageInfo info)
Set the info of the message.
Parameters:
info - the message info.

setDeliveryMode

public void setDeliveryMode(int mode)
Set the deliver mode of the message.
Parameters:
mode - the message deliver mode.

setFailOverDestination

public void setFailOverDestination(Destination dest)
Set the fail-over destination.
Parameters:
dest - the fail-over destination.

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.