public abstract class Request extends PDU
Common base class for all SMPP Request PDU types
commandID, commandStatus, MIN_SIZE, sequenceNumber
Modifier | Constructor and Description |
---|---|
protected |
Request(java.io.DataInput in) |
|
Request(int commandId) |
Modifier and Type | Method and Description |
---|---|
abstract Response |
createResponse(int status)
Create a response of the appropriate type.
|
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
checkCString, checkCString, checkDate, decodeUnsigned, encodeUnsigned, equalCStrings, getCString, getCString, getCStringByteArray, getCStringHashCode, isNullOrEmptyCString, printAsHex, putCString
public Request(int commandId)
protected Request(java.io.DataInput in) throws java.io.IOException
java.io.IOException
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.
status
- the value for the responses’ command_status field