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 voidcheckFieldsSet()Checks that all mandatory fields are present.SMSDataCodingSchemegetDataCodingScheme()Gets the value of the coding scheme within the user data.SMSProtocolIdgetProtocolId()Gets the value of identifies the above layer protocol.byte[]getUserData()Gets the value of the user data.SMSTPDUWithData.UserDataHeaderIndicatorgetUserDataHeaderIndicator()Gets the value of whether user data contains a header.intgetUserDataLength()Gets the value of the length of the user data.SMSDeliverReportsetDataCodingScheme(SMSDataCodingScheme value)Sets the value of the coding scheme within the user data.SMSDeliverReportsetProtocolId(SMSProtocolId value)Sets the value of identifies the above layer protocol.SMSDeliverReportsetUserData(byte[] value)Sets the value of the user data.SMSDeliverReportsetUserDataHeaderIndicator(SMSTPDUWithData.UserDataHeaderIndicator value)Sets the value of whether user data contains a header.SMSDeliverReportsetUserDataLength(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 indexstartand islenbytes 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 EncodeExceptionChecks that all mandatory fields are present. Should be called immediately before all calls to encode().- Overrides:
checkFieldsSetin 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:
getUserDataHeaderIndicatorin 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:
getProtocolIdin 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:
getDataCodingSchemein 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 DecodeExceptionGets the value of the length of the user data.- Overrides:
getUserDataLengthin classSMSTPDUWithData- Returns:
- int representation of the length of the user data
- Throws:
DecodeException- if encoded state cannot be decoded
-
getUserData
public byte[] getUserData() throws DecodeExceptionGets the value of the user data.- Overrides:
getUserDatain 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:
setUserDataHeaderIndicatorin 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:
setProtocolIdin 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:
setDataCodingSchemein 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:
setUserDataLengthin 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:
setUserDatain classSMSTPDUWithData- Parameters:
value- byte[] representation of the user data- Returns:
- this
- Throws:
IllegalStateException
-
-