Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.messaging.transport
Class Address

java.lang.Object
  extended byoracle.panama.messaging.transport.Address


public class Address
extends java.lang.Object

The address contains information of a destination device. This class is used by Transport to pass device address information to a Transport driver. Attribute message id is the unique message id assigned to this message by Transport. Driver can use this message to generate the return message id from the send() method. The return message id from the send() method is actually should be the message id assigned to the message by the server gateway the driver connects to. However, some gateway may not be able to assign id for accepted message.

See Also:
DeliveryModes, XDriver, Profile

Constructor Summary
Address()
Constructor.

Method Summary
java.lang.String getAddress()
Get the adress of the device.
int getDeliveryMode()
Get the delivery mode
java.lang.String getDeliveryType()
Get the delivery type for the device.
void setAddress(java.lang.String address)
Set the address of the device.
void setDeliveryMode(int mode)
Set the deliver mode of the message.
void setDeliveryType(java.lang.String dtype)
Set the delivery type for the device.
void setMessageId(java.lang.String mid)
Set the id of the message.

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

Constructor Detail

Address

public Address()
Constructor. Construct a new address instance.

Method Detail

getAddress

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

getDeliveryMode

public int getDeliveryMode()
Get the delivery mode
Returns:
the delivery mode

getDeliveryType

public java.lang.String getDeliveryType()
Get the delivery type for the device.
Returns:
the delivery type for the device.

setAddress

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

setDeliveryMode

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

setDeliveryType

public void setDeliveryType(java.lang.String dtype)
Set the delivery type for the device.
Parameters:
dtype - the delviery type for the device.

setMessageId

public void setMessageId(java.lang.String mid)
Set the id of the message.
Parameters:
mid - the message id.

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.