org.mobicents.protocols.smpp.message
Class Bind
java.lang.Object
org.mobicents.protocols.smpp.message.SMPPPacket
org.mobicents.protocols.smpp.message.Bind
- All Implemented Interfaces:
- Serializable, Cloneable
- Direct Known Subclasses:
- BindReceiver, BindTransceiver, BindTransmitter
public abstract class Bind
- extends SMPPPacket
Abstract parent of BindTransmitter, BindReceiver and BindTransceiver.
- Version:
- $Id: Bind.java 457 2009-01-15 17:37:42Z orank $
- See Also:
- Serialized Form
|
Constructor Summary |
Bind(int id)
|
| Methods inherited from class org.mobicents.protocols.smpp.message.SMPPPacket |
clone, getCommandId, getCommandStatus, getLength, getSequenceNum, getTLV, getTLVTable, isRequest, isResponse, isSet, readFrom, removeTLV, safeCompare, setCommandStatus, setSequenceNum, setTLV, sizeOf, sizeOf, sizeOf, sizeOf, toString, toString, validate, validateTLVTable, writeTo, writeTo |
Bind
public Bind(int id)
getAddressRange
public String getAddressRange()
setAddressRange
public void setAddressRange(String addressRange)
getAddressNpi
public int getAddressNpi()
setAddressNpi
public void setAddressNpi(int addrNpi)
getAddressTon
public int getAddressTon()
setAddressTon
public void setAddressTon(int addrTon)
getPassword
public String getPassword()
setPassword
public void setPassword(String password)
getSystemId
public String getSystemId()
setSystemId
public void setSystemId(String systemId)
getSystemType
public String getSystemType()
setSystemType
public void setSystemType(String systemType)
getVersion
public SMPPVersion getVersion()
setVersion
public void setVersion(SMPPVersion version)
equals
public boolean equals(Object obj)
- Overrides:
equals in class SMPPPacket
hashCode
public int hashCode()
- Overrides:
hashCode in class SMPPPacket
toString
protected void toString(StringBuffer buffer)
validateMandatory
protected void validateMandatory(SMPPVersion smppVersion)
- Description copied from class:
SMPPPacket
- Validate the mandatory parameters for this packet. If any
mandatory parameter fails validation, a
org.mobicents.smpp.version.VersionException should be
thrown.
- Overrides:
validateMandatory in class SMPPPacket
- Parameters:
smppVersion - The version to validate against.
readMandatory
protected void readMandatory(PacketDecoder decoder)
- Description copied from class:
SMPPPacket
- Read the mandatory parameters from a packet decoder. This default
implementation is empty, parsing no mandatory parameters. Sub-classes
may override this as they wish.
- Overrides:
readMandatory in class SMPPPacket
- Parameters:
decoder - The decoder to read fields from.
writeMandatory
protected void writeMandatory(PacketEncoder encoder)
throws IOException
- Description copied from class:
SMPPPacket
- Write the mandatory parameters to a packet encoder.
- Overrides:
writeMandatory in class SMPPPacket
- Parameters:
encoder - The encoder to write mandatory parameters to.
- Throws:
IOException - If an problem occurs while writing.
getMandatorySize
protected int getMandatorySize()
- Description copied from class:
SMPPPacket
- Get the encoded size of the mandatory parameters of this packet.
- Overrides:
getMandatorySize in class SMPPPacket
- Returns:
- The number of bytes the mandatory parameters will encode to.
Copyright © 2011 Mobicents. All Rights Reserved.