org.mobicents.protocols.smpp
Class Session
java.lang.Object
org.mobicents.protocols.smpp.Session
public class Session
- extends 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(String host,
int port)
throws UnknownHostException
- Throws:
UnknownHostException
getSessionId
public 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,
String systemID,
String password,
String systemType)
throws IOException
- Throws:
IOException
bind
public void bind(SessionType type,
String systemID,
String password,
String systemType,
int typeOfNumber,
int numberPlanIndicator,
String addressRange)
throws IOException
- Throws:
IOException
bind
public void bind(Bind bindRequest)
throws IOException
- Throws:
IOException
unbind
public void unbind()
throws IOException
- Throws:
IOException
sendPacket
public void sendPacket(SMPPPacket packet)
throws IOException
- Throws:
IOException
closeLink
public void closeLink()
throws IOException
- Throws:
IOException
getState
public SessionState getState()
getReceiver
public Receiver getReceiver(Receiver receiver)
setReceiver
public void setReceiver(Receiver receiver)
processReceivedPacket
public void processReceivedPacket(SMPPPacket packet)
Copyright © 2011 Mobicents. All Rights Reserved.