org.jsmpp.session
Class BindRequest
java.lang.Object
org.jsmpp.session.BindRequest
public class BindRequest
- extends java.lang.Object
- Author:
- uudashr
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BindRequest
public BindRequest(int sequenceNumber,
BindType bindType,
java.lang.String systemId,
java.lang.String password,
java.lang.String systemType,
TypeOfNumber addrTon,
NumberingPlanIndicator addrNpi,
java.lang.String addressRange,
ServerResponseHandler responseHandler)
BindRequest
public BindRequest(Bind bind,
ServerResponseHandler responseHandler)
getBindParameter
@Deprecated
public BindParameter getBindParameter()
- Deprecated.
getBindType
public BindType getBindType()
getSystemId
public java.lang.String getSystemId()
getPassword
public java.lang.String getPassword()
getSystemType
public java.lang.String getSystemType()
getAddrTon
public TypeOfNumber getAddrTon()
getAddrNpi
public NumberingPlanIndicator getAddrNpi()
getAddressRange
public java.lang.String getAddressRange()
accept
public void accept(java.lang.String systemId)
throws PDUStringException,
java.lang.IllegalStateException,
java.io.IOException
- Accept the bind request.
- Parameters:
systemId
- is the system identifier that will be send to ESME.
- Throws:
PDUStringException
- if the system id is not valid.
java.lang.IllegalStateException
- if the acceptance or rejection has been made.
java.io.IOException
- is the connection already closed.- See Also:
#reject(ProcessRequestException)
reject
public void reject(int errorCode)
throws java.lang.IllegalStateException,
java.io.IOException
- Reject the bind request.
- Parameters:
errorCode
- is the reason of rejection.
- Throws:
java.lang.IllegalStateException
- if the acceptance or rejection has been made.
java.io.IOException
- if the connection already closed.- See Also:
#accept()}