Class SMSDeliverReport
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- AbstractEncodedDataObject<T>
-
- AbstractLazyEncodedDataObject<byte[]>
-
- AbstractLazyEncodedByteArray
-
- com.opencloud.slee.resources.in.datatypes.sms.SMSTPDU
-
- com.opencloud.slee.resources.in.datatypes.sms.SMSTPDUWithData
-
- com.opencloud.slee.resources.in.datatypes.sms.SMSDeliverReport
-
- All Implemented Interfaces:
DataObject
,Serializable
- Direct Known Subclasses:
SMSDeliverReportAck
,SMSDeliverReportError
public abstract class SMSDeliverReport extends SMSTPDUWithData
Representation of a SMS-DELIVER-REPORT TPDU. This is the superclass for Ack and Error subclasses that represent the RP-ACK and RP-ERROR variants, respectively.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.opencloud.slee.resources.in.datatypes.sms.SMSTPDUWithData
SMSTPDUWithData.UserDataHeaderIndicator
-
Nested classes/interfaces inherited from class com.opencloud.slee.resources.in.datatypes.sms.SMSTPDU
SMSTPDU.Type
-
-
Field Summary
-
Fields inherited from class com.opencloud.slee.resources.in.datatypes.sms.SMSTPDUWithData
DataCodingScheme_value, OnlyHeader_present, OnlyHeader_value, ProtocolId_value, UserData_value, UserDataHeaderIndicator_value, UserDataLength_present, UserDataLength_value
-
Fields inherited from class com.opencloud.slee.resources.cgin.AbstractLazyEncodedDataObject
isDecoded
-
Fields inherited from class com.opencloud.slee.resources.cgin.AbstractEncodedDataObject
encoded
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description SMSDeliverReport()
Constructs a new SMSDeliverReport object with no fields set.SMSDeliverReport(byte[] data)
Constructs a new SMSDeliverReport object from network-encoded data.SMSDeliverReport(byte[] data, int start, int len)
Constructs a new SMSDeliverReport object from part of network-encoded data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkFieldsSet()
Checks that all mandatory fields are present.SMSDataCodingScheme
getDataCodingScheme()
Gets the value of the coding scheme within the user data.SMSProtocolId
getProtocolId()
Gets the value of identifies the above layer protocol.byte[]
getUserData()
Gets the value of the user data.SMSTPDUWithData.UserDataHeaderIndicator
getUserDataHeaderIndicator()
Gets the value of whether user data contains a header.int
getUserDataLength()
Gets the value of the length of the user data.SMSDeliverReport
setDataCodingScheme(SMSDataCodingScheme value)
Sets the value of the coding scheme within the user data.SMSDeliverReport
setProtocolId(SMSProtocolId value)
Sets the value of identifies the above layer protocol.SMSDeliverReport
setUserData(byte[] value)
Sets the value of the user data.SMSDeliverReport
setUserDataHeaderIndicator(SMSTPDUWithData.UserDataHeaderIndicator value)
Sets the value of whether user data contains a header.SMSDeliverReport
setUserDataLength(int value)
Sets the value of the length of the user data.-
Methods inherited from class com.opencloud.slee.resources.in.datatypes.sms.SMSTPDUWithData
checkUserDataConstraints, getUserDataHeader, getUserDataString, hasDataCodingScheme, hasOnlyHeader, hasProtocolId, hasUserData, hasUserDataHeaderIndicator, hasUserDataLength, setOnlyHeaderPresent, setReadOnly, setUserDataLengthPresent, setUserDataString, setUserDataString, setUserDataString, setUserDataString
-
Methods inherited from class com.opencloud.slee.resources.in.datatypes.sms.SMSTPDU
decodeRPAck, decodeRPAck, decodeRPError, decodeRPError, decodeRPMOData, decodeRPMOData, decodeRPMTData, decodeRPMTData, encodeRPAck, encodeRPError, encodeRPMOData, encodeRPMTData, getEncodedForm, getType
-
Methods inherited from class com.opencloud.slee.resources.cgin.AbstractLazyEncodedDataObject
checkDecode, checkModifyAndDecode, decode, encode
-
Methods inherited from class com.opencloud.util.AbstractFieldsObject
equals, getFieldsMap, hashCode, toString
-
Methods inherited from class com.opencloud.util.AbstractDataObject
checkModify, clone, isReadOnly
-
-
-
-
Constructor Detail
-
SMSDeliverReport
public SMSDeliverReport()
Constructs a new SMSDeliverReport object with no fields set.
-
SMSDeliverReport
public SMSDeliverReport(byte[] data)
Constructs a new SMSDeliverReport object from network-encoded data. The data is not decoded and might not be decodable.- Parameters:
data
- network-encoded data- Throws:
NullPointerException
- if data is null
-
SMSDeliverReport
public SMSDeliverReport(byte[] data, int start, int len)
Constructs a new SMSDeliverReport object from part of network-encoded data. The part starts at indexstart
and islen
bytes long. The data is not decoded and might not be decodable.- Parameters:
data
- network-encoded datastart
- starting offset of network-encoded data in byte arraylen
- default length if not predictable- Throws:
NullPointerException
- if data is nullIllegalArgumentException
- if len is negative
-
-
Method Detail
-
checkFieldsSet
public void checkFieldsSet() throws EncodeException
Checks that all mandatory fields are present. Should be called immediately before all calls to encode().- Overrides:
checkFieldsSet
in classSMSTPDUWithData
- Throws:
EncodeException
- if any mandatory field is not present
-
getUserDataHeaderIndicator
public SMSTPDUWithData.UserDataHeaderIndicator getUserDataHeaderIndicator() throws DecodeException
Gets the value of whether user data contains a header.- Overrides:
getUserDataHeaderIndicator
in classSMSTPDUWithData
- Returns:
- UserDataHeaderIndicator representation of whether user data contains a header
- Throws:
DecodeException
- if encoded state cannot be decoded
-
getProtocolId
public SMSProtocolId getProtocolId() throws DecodeException
Gets the value of identifies the above layer protocol.- Overrides:
getProtocolId
in classSMSTPDUWithData
- Returns:
- SMSProtocolId representation of identifies the above layer protocol
- Throws:
DecodeException
- if encoded state cannot be decoded
-
getDataCodingScheme
public SMSDataCodingScheme getDataCodingScheme() throws DecodeException
Gets the value of the coding scheme within the user data.- Overrides:
getDataCodingScheme
in classSMSTPDUWithData
- Returns:
- SMSDataCodingScheme representation of the coding scheme within the user data
- Throws:
DecodeException
- if encoded state cannot be decoded
-
getUserDataLength
public int getUserDataLength() throws DecodeException
Gets the value of the length of the user data.- Overrides:
getUserDataLength
in classSMSTPDUWithData
- Returns:
- int representation of the length of the user data
- Throws:
DecodeException
- if encoded state cannot be decoded
-
getUserData
public byte[] getUserData() throws DecodeException
Gets the value of the user data.- Overrides:
getUserData
in classSMSTPDUWithData
- Returns:
- byte[] representation of the user data
- Throws:
DecodeException
- if encoded state cannot be decoded
-
setUserDataHeaderIndicator
public SMSDeliverReport setUserDataHeaderIndicator(SMSTPDUWithData.UserDataHeaderIndicator value) throws IllegalStateException
Sets the value of whether user data contains a header.- Overrides:
setUserDataHeaderIndicator
in classSMSTPDUWithData
- Parameters:
value
- UserDataHeaderIndicator representation of whether user data contains a header- Returns:
- this
- Throws:
IllegalStateException
-
setProtocolId
public SMSDeliverReport setProtocolId(SMSProtocolId value) throws IllegalStateException
Sets the value of identifies the above layer protocol.- Overrides:
setProtocolId
in classSMSTPDUWithData
- Parameters:
value
- SMSProtocolId representation of identifies the above layer protocol- Returns:
- this
- Throws:
IllegalStateException
-
setDataCodingScheme
public SMSDeliverReport setDataCodingScheme(SMSDataCodingScheme value) throws IllegalStateException
Sets the value of the coding scheme within the user data.- Overrides:
setDataCodingScheme
in classSMSTPDUWithData
- Parameters:
value
- SMSDataCodingScheme representation of the coding scheme within the user data- Returns:
- this
- Throws:
IllegalStateException
-
setUserDataLength
public SMSDeliverReport setUserDataLength(int value) throws IllegalStateException
Sets the value of the length of the user data.- Overrides:
setUserDataLength
in classSMSTPDUWithData
- Parameters:
value
- int representation of the length of the user data- Returns:
- this
- Throws:
IllegalStateException
-
setUserData
public SMSDeliverReport setUserData(byte[] value) throws IllegalStateException
Sets the value of the user data.- Overrides:
setUserData
in classSMSTPDUWithData
- Parameters:
value
- byte[] representation of the user data- Returns:
- this
- Throws:
IllegalStateException
-
-