com.objectxp.msg.util
Class PortAddressingHeaderElement
java.lang.Object
com.objectxp.msg.util.SmsHeaderElement
com.objectxp.msg.util.PortAddressingHeaderElement
- public class PortAddressingHeaderElement
- extends SmsHeaderElement
This class can be used for constructing a Port Addressing Header Element.
This facility allows short messages to be routed to one of multiple application, using a method
similar to TCP/UDP ports in a TCP/IP network. An application entity is uniquely identified by the
pair of TP-DA/TP-OA and the port address. The port addressing is transparent to the transport, and also
useful in Status Reports.
- See Also:
SmsHeader
| Fields inherited from class com.objectxp.msg.util.SmsHeaderElement |
APPL_PORT_ADDR_16_BIT, APPL_PORT_ADDR_8_BIT, CONCAT_SM_16BIT_REF, CONCAT_SM_8BIT_REF, EMS_LARGE_ANIM, EMS_LARGE_PICTURE, EMS_PREDEF_ANIM, EMS_PREDEF_SOUND, EMS_PROMPT_INDICATOR, EMS_SMALL_ANIM, EMS_SMALL_PICTURE, EMS_TEXT_FMT, EMS_USERDEF_SOUND, EMS_VARIABLE_PICTURE, SMSC_CONTROL_PARAMS, SPECIAL_SMS_INDICATION, UDH_SRC_INDICATION, WCMP |
|
Constructor Summary |
PortAddressingHeaderElement(boolean eightBit,
int destinationPort,
int originatorPort)
Construct a new Port Addressing Header Element. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PortAddressingHeaderElement
public PortAddressingHeaderElement(boolean eightBit,
int destinationPort,
int originatorPort)
- Construct a new Port Addressing Header Element.
- Parameters:
eightBit - true for 8bit ports, false for 16bit portsdestinationPort - the destination portoriginatorPort - the originating port
getDestinationPort
public int getDestinationPort()
- Returns the destination port for this element.
- Returns:
- the destination port
- Since:
- jSMS 2.1.2
getOriginatorPort
public int getOriginatorPort()
- Returns the originator port for this element.
- Returns:
- the originator port
- Since:
- jSMS 2.1.2
toString
public java.lang.String toString()
- Overrides:
toString in class SmsHeaderElement
object XP, Inc. © 2000-2007. All rights reserved object XP