Class Request
- java.lang.Object
-
- com.opencloud.slee.resources.smpp.pdu.ByteData
-
- com.opencloud.slee.resources.smpp.pdu.PDU
-
- com.opencloud.slee.resources.smpp.pdu.Request
-
- All Implemented Interfaces:
com.opencloud.util.FastSerializable
,Externalizable
,Serializable
- Direct Known Subclasses:
AlertNotification
,BindRequest
,BroadcastSM
,CancelBroadcastSM
,CancelSM
,DataSM
,DeliverSM
,EnquireLink
,Outbind
,QueryBroadcastSM
,QuerySM
,ReplaceSM
,SubmitMulti
,SubmitSM
,Unbind
public abstract class Request extends PDU
Common base class for all SMPP Request PDU types- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.opencloud.slee.resources.smpp.pdu.PDU
commandID, commandStatus, MIN_SIZE, sequenceNumber
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Response
createResponse(int status)
Create a response of the appropriate type.-
Methods inherited from class com.opencloud.slee.resources.smpp.pdu.PDU
addTLV, bodyEquals, bodyFromBuffer, bodyHashCode, bodySize, bodyToBuffer, bodyToString, equals, fromBuffer, fromStream, getAllTLVs, getCommandID, getCommandLength, getCommandStatus, getSequenceNumber, getTLV, hashCode, hasTLV, headerEquals, headerFromBuffer, headerHashCode, headerSize, headerToBuffer, headerToString, readExternal, setCommandID, setCommandStatus, setSequenceNumber, size, tlvEquals, tlvFromBuffer, tlvHashCode, tlvSize, tlvToBuffer, tlvToString, toBuffer, toStream, toString, writeExternal
-
Methods inherited from class com.opencloud.slee.resources.smpp.pdu.ByteData
checkCString, checkCString, checkDate, decodeUnsigned, encodeUnsigned, equalCStrings, getCString, getCString, getCStringByteArray, getCStringHashCode, isNullOrEmptyCString, printAsHex, putCString
-
-
-
-
Constructor Detail
-
Request
public Request(int commandId)
-
Request
protected Request(DataInput in) throws IOException
- Throws:
IOException
-
-
Method Detail
-
createResponse
public abstract Response createResponse(int status)
Create a response of the appropriate type. Subclasses override to return correct type. Implementations MUST set the response sequence number to be the same as the request sequence number.- Parameters:
status
- the value for the responses' command_status field- Returns:
- the response corresponding to this request, or null if there is no appropriate response type (eg. outbind, alert_notification).
-
-