Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.messaging.transport
Class GSMSmartMsg

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


public class GSMSmartMsg
extends java.lang.Object

Smart message for GSM network. It is used by SmartMsgEncoder. A smart message encoder can encode a smart message, generate the binary payload to be sent by SMS drivers.

See Also:
SmartMsgEncoder, CDMASmartMsg

Constructor Summary
GSMSmartMsg(int destPort, int origPort, java.lang.String[] frags)
Constructor.

Method Summary
int getDCS()
Get the DCS attribute.
int getDestinationPort()
Get the destination port.
java.lang.String[] getFragments()
Get the smart message's fragments.
int getOriginPort()
Get the source port.
int getPID()
Get the PID attribute.
int getUDHI()
Get the UDHI attribute.
void setDCS(int d)
Set the DCS attribute.
void setPID(int p)
Set the PID attribute.
void setUDHI(int u)
Set the UDHI attribute.

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

Constructor Detail

GSMSmartMsg

public GSMSmartMsg(int destPort,
                   int origPort,
                   java.lang.String[] frags)
Constructor. Construc t a new GSM smart message.
Parameters:
origPort - the source port.
frags - the message fragments.

Method Detail

getDCS

public int getDCS()
Get the DCS attribute.
Returns:
the DCS (data coding schema) attribute.

getDestinationPort

public int getDestinationPort()
Get the destination port.
Returns:
the desination port.

getFragments

public java.lang.String[] getFragments()
Get the smart message's fragments.
Returns:
the smart message's fragments.

getOriginPort

public int getOriginPort()
Get the source port.
Returns:
the source port.

getPID

public int getPID()
Get the PID attribute.
Returns:
the PID (protocol identification) attribue.

getUDHI

public int getUDHI()
Get the UDHI attribute.
Returns:
the UDHI (user data header information) attribute.

setDCS

public void setDCS(int d)
Set the DCS attribute. Set the DCS (data coding schema) attribute. By default it is set to 0xF5.
Parameters:
d - the DCS value to set.

setPID

public void setPID(int p)
Set the PID attribute. Set the PID (protocol identifiaction) attribute. By default it is set to 0x00.
Parameters:
p - the PID value to set.

setUDHI

public void setUDHI(int u)
Set the UDHI attribute. Set the UDHI (user data header information) attribute. By default it is set to 1.
Parameters:
u - the UDHI value to set.

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.