org.mobicents.protocols.smpp
Class Session

java.lang.Object
  extended by org.mobicents.protocols.smpp.Session

public class Session
extends Object

Author:
amit bhayani, orank

Constructor Summary
Session(SmscLink link)
           
Session(String host, int port)
           
 
Method Summary
 void addObserver(SessionObserver observer)
           
 void bind(Bind bindRequest)
           
 void bind(SessionType type, String systemID, String password, String systemType)
           
 void bind(SessionType type, String systemID, String password, String systemType, int typeOfNumber, int numberPlanIndicator, String addressRange)
           
 void closeLink()
           
 EventDispatcher getEventDispatcher()
           
 Receiver getReceiver(Receiver receiver)
           
 SequenceNumberScheme getSequenceNumberScheme()
           
 String getSessionId()
           
 SmscLink getSmscLink()
           
 SessionState getState()
           
 SMPPVersion getVersion()
           
 boolean isValidating()
           
 void processReceivedPacket(SMPPPacket packet)
           
 void removeObserver(SessionObserver observer)
           
 void sendPacket(SMPPPacket packet)
           
 void setEventDispatcher(EventDispatcher eventDispatcher)
           
 void setReceiver(Receiver receiver)
           
 void setSequenceNumberScheme(SequenceNumberScheme numberScheme)
           
 void setValidating(boolean validating)
           
 void setVersion(SMPPVersion version)
           
 void unbind()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Session

public Session(SmscLink link)

Session

public Session(String host,
               int port)
        throws UnknownHostException
Throws:
UnknownHostException
Method Detail

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.