|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.protocols.smpp.gsm.AbstractHeaderElement
org.mobicents.protocols.smpp.gsm.ems.ExtendedObject
public class ExtendedObject
An extended object.
| Constructor Summary | |
|---|---|
ExtendedObject(int objectFormat,
int referenceNum)
|
|
ExtendedObject(int objectFormat,
int referenceNum,
byte[] data)
|
|
| Method Summary | |
|---|---|
byte[] |
getData()
Get the data of this extended object. |
int |
getLength()
Get the total number of octets this header element encodes as excluding the IEI and the IEI-Data-Length fields. |
int |
getObjectFormat()
Get the object format of this extended object. |
int |
getObjectPosition()
Get the position in the SMS where this object will be displayed. |
boolean |
isComplete()
Determine if this HeaderElement has written all its data. |
boolean |
isMayForward()
Determine if this extended object can be forwarded by SMS. |
boolean |
isUserPrompt()
Determine if this object should be handled as a user prompt. |
void |
reset()
Reset this HeaderElement to its initial state. |
void |
setData(byte[] data)
Set this extended object's data. |
void |
setMayForward(boolean mayForward)
Set if this object may be forwarded by SMS. |
void |
setObjectPosition(int objectPosition)
Set the position in the SMS where this object will be displayed. |
void |
setUserPrompt(boolean userPrompt)
Set if this object should be handled as a user prompt. |
boolean |
write(int segmentNum,
ByteBuffer buffer)
Encode this header element to the given ByteBuffer. |
| Methods inherited from class org.mobicents.protocols.smpp.gsm.AbstractHeaderElement |
|---|
doWrite, equals, isRecurring, postProcess |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtendedObject(int objectFormat,
int referenceNum)
public ExtendedObject(int objectFormat,
int referenceNum,
byte[] data)
| Method Detail |
|---|
public int getLength()
HeaderElement
public void reset()
HeaderElementUserData implementation.
reset in interface HeaderElementreset in class AbstractHeaderElementpublic boolean isComplete()
HeaderElementUserData implementations.
isComplete in interface HeaderElementisComplete in class AbstractHeaderElement
public boolean write(int segmentNum,
ByteBuffer buffer)
HeaderElement
write in interface HeaderElementwrite in class AbstractHeaderElementpublic boolean isMayForward()
public void setMayForward(boolean mayForward)
mayForward - true if the object may be forwarded,
false if not.public boolean isUserPrompt()
public void setUserPrompt(boolean userPrompt)
userPrompt - true if this object should be handled as
a user prompt, false if it should be handled normally.public int getObjectFormat()
public int getObjectPosition()
public byte[] getData()
public void setData(byte[] data)
data - This extended object's data.public void setObjectPosition(int objectPosition)
objectPosition - The position in the SMS where this object
will be displayed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||