org.jsmpp.bean
Class Command

java.lang.Object
  extended by org.jsmpp.bean.Command
Direct Known Subclasses:
AbstractSmCommand, AbstractSmRespCommand, AlertNotification, Bind, BindResp, CancelSm, CancelSmResp, EnquireLink, EnquireLinkResp, GenericNack, Outbind, QuerySm, QuerySmResp, ReplaceSm, ReplaceSmResp, SubmitMulti, SubmitMultiResp, Unbind, UnbindResp

public class Command
extends java.lang.Object

Class represent SMPP Command. Contains only the header of SMPP PDU.

Version:
1.0
Author:
uudashr

Field Summary
protected  int commandId
           
protected  int commandLength
           
protected  int commandStatus
           
protected  int sequenceNumber
           
 
Constructor Summary
Command()
          Default constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getCommandId()
          Get the command_id.
 java.lang.String getCommandIdAsHex()
          Get the command_id as hex string value.
 int getCommandLength()
          Get the command_length.
 int getCommandStatus()
          Get the command_status.
 java.lang.String getCommandStatusAsHex()
          Get the command_status as hex string.
 int getSequenceNumber()
          Get the sequence_number.
 int hashCode()
           
 void setCommandId(int commandId)
          Set the command_id.
 void setCommandLength(int commandLength)
          Ser the command_length.
 void setCommandStatus(int commandStatus)
          Set value of command_status.
 void setSequenceNumber(int sequenceNumber)
          Set value of sequence_number.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

commandLength

protected int commandLength

commandId

protected int commandId

commandStatus

protected int commandStatus

sequenceNumber

protected int sequenceNumber
Constructor Detail

Command

public Command()
Default constructor.

Method Detail

getCommandId

public int getCommandId()
Get the command_id.

Returns:
the command_id.

getCommandIdAsHex

public java.lang.String getCommandIdAsHex()
Get the command_id as hex string value.

Returns:
the hex string value of command_id.

setCommandId

public void setCommandId(int commandId)
Set the command_id.

Parameters:
commandId - is the new value of command_id..

getCommandLength

public int getCommandLength()
Get the command_length.

Returns:
the command_length.

setCommandLength

public void setCommandLength(int commandLength)
Ser the command_length.

Parameters:
commandLength - is the new value of command_length.

getCommandStatus

public int getCommandStatus()
Get the command_status.

Returns:
the command_status.

getCommandStatusAsHex

public java.lang.String getCommandStatusAsHex()
Get the command_status as hex string.

Returns:
the hex string value of command_status.

setCommandStatus

public void setCommandStatus(int commandStatus)
Set value of command_status.

Parameters:
commandStatus - is the new value of command_status.

getSequenceNumber

public int getSequenceNumber()
Get the sequence_number.

Returns:
the value of sequence_number.

setSequenceNumber

public void setSequenceNumber(int sequenceNumber)
Set value of sequence_number.

Parameters:
sequenceNumber - is the new value of sequece_number.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object