org.mobicents.protocols.smpp
Class Session
java.lang.Object
org.mobicents.protocols.smpp.Session
public class Session
- extends java.lang.Object
- Author:
- amit bhayani, orank
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Session
public Session(SmscLink link)
Session
public Session(java.lang.String host,
int port)
throws java.net.UnknownHostException
- Throws:
java.net.UnknownHostException
getSessionId
public java.lang.String getSessionId()
addObserver
public void addObserver(SessionObserver observer)
removeObserver
public void removeObserver(SessionObserver observer)
getSmscLink
public SmscLink getSmscLink()
getEventDispatcher
public EventDispatcher getEventDispatcher()
setEventDispatcher
public void setEventDispatcher(EventDispatcher eventDispatcher)
getVersion
public SMPPVersion getVersion()
setVersion
public void setVersion(SMPPVersion version)
getSequenceNumberScheme
public SequenceNumberScheme getSequenceNumberScheme()
setSequenceNumberScheme
public void setSequenceNumberScheme(SequenceNumberScheme numberScheme)
isValidating
public boolean isValidating()
setValidating
public void setValidating(boolean validating)
bind
public void bind(SessionType type,
java.lang.String systemID,
java.lang.String password,
java.lang.String systemType)
throws java.io.IOException
- Throws:
java.io.IOException
bind
public void bind(SessionType type,
java.lang.String systemID,
java.lang.String password,
java.lang.String systemType,
int typeOfNumber,
int numberPlanIndicator,
java.lang.String addressRange)
throws java.io.IOException
- Throws:
java.io.IOException
bind
public void bind(Bind bindRequest)
throws java.io.IOException
- Throws:
java.io.IOException
unbind
public void unbind()
throws java.io.IOException
- Throws:
java.io.IOException
sendPacket
public void sendPacket(SMPPPacket packet)
throws java.io.IOException
- Throws:
java.io.IOException
closeLink
public void closeLink()
throws java.io.IOException
- Throws:
java.io.IOException
getState
public SessionState getState()
getReceiver
public Receiver getReceiver(Receiver receiver)
setReceiver
public void setReceiver(Receiver receiver)
processReceivedPacket
public void processReceivedPacket(SMPPPacket packet)
Copyright © 2010 Mobicents. All Rights Reserved.