|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectie.ncl.msg.Message
ie.ncl.msg.BinaryMessage
ie.ncl.sms.gsm.UDHMessage
public class UDHMessage
A User Data Header Message is a message with a set of indicators at the start of the message such as fragmentation information, source and destination port numbers.
| Constructor Summary | |
|---|---|
UDHMessage(Address destination,
byte[] bytes,
UserDataHeader udh)
Create a User Data Header Message specifying the destination address, the header and the data. |
|
UDHMessage(BinaryMessage msg,
byte[] bytes,
UserDataHeader udh)
Create a User Data Header Message specifying the all the message attributes from another message, and also the header and the data. |
|
| Method Summary | |
|---|---|
static BinaryMessage[] |
fragment(Message msg,
int maxLen,
int sequence)
|
static BinaryMessage[] |
fragment(Message msg,
int maxLen,
int sequence,
java.lang.String charEncoding)
|
static UDHMessage |
fromSMS(BinaryMessage sms)
Construct a UDHMessage from a simple SMS message. |
Fragmentation |
getFragmentation()
Short cut to getting the fragmentation information in the header. |
Ports |
getPorts()
Short cut to getting the port addressing information in the header. |
UserDataHeader |
getUserDataHeader()
Get the header of the message. |
static int |
roundUpToBlockSize(int dataLength,
int blockSize)
|
void |
setUserDataHeader(UserDataHeader udh)
Set the header of the message. |
| Methods inherited from class ie.ncl.msg.BinaryMessage |
|---|
getBody, getBytes, setBody, setBytes, size |
| Methods inherited from class ie.ncl.msg.Message |
|---|
getAttribute, getAttributes, getCorrelationID, getDestination, getID, getSource, getType, putAttribute, removeAttribute, setAttributes, setCorrelationID, setDestination, setID, setSource, setType |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UDHMessage(Address destination,
byte[] bytes,
UserDataHeader udh)
public UDHMessage(BinaryMessage msg,
byte[] bytes,
UserDataHeader udh)
| Method Detail |
|---|
public UserDataHeader getUserDataHeader()
public void setUserDataHeader(UserDataHeader udh)
public Ports getPorts()
public Fragmentation getFragmentation()
public static BinaryMessage[] fragment(Message msg,
int maxLen,
int sequence)
public static BinaryMessage[] fragment(Message msg,
int maxLen,
int sequence,
java.lang.String charEncoding)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public static int roundUpToBlockSize(int dataLength,
int blockSize)
public static UDHMessage fromSMS(BinaryMessage sms)
throws UserDataHeaderMalformedException
UserDataHeaderMalformedException
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||