org.mobicents.servlet.sip.core.session
Class SipSessionsUtilImpl

java.lang.Object
  extended by org.mobicents.servlet.sip.core.session.SipSessionsUtilImpl
All Implemented Interfaces:
java.io.Serializable, SipSessionsUtil

public class SipSessionsUtilImpl
extends java.lang.Object
implements SipSessionsUtil, java.io.Serializable

Author:
Jean Deruelle
See Also:
Serialized Form

Constructor Summary
SipSessionsUtilImpl(SipContext sipContext)
           
 
Method Summary
 void addCorrespondingSipApplicationSession(SipApplicationSessionKey newApplicationSession, SipApplicationSessionKey correspondingSipApplicationSession, java.lang.String headerName)
          Add a mapping between a new session and a corresponding sipSession related to a headerName.
 void addCorrespondingSipSession(MobicentsSipSession newSession, MobicentsSipSession correspondingSipSession, java.lang.String headerName)
          Add a mapping between a new session and a corresponding sipSession related to a headerName.
 SipApplicationSession getApplicationSessionById(java.lang.String applicationSessionId)
          
 SipApplicationSession getApplicationSessionByKey(java.lang.String applicationSessionKey, boolean create)
          
 SipApplicationSessionKey getCorrespondingSipApplicationSession(SipApplicationSessionKey sipApplicationSessionKey, java.lang.String headerName)
          
 SipSession getCorrespondingSipSession(SipSession sipSession, java.lang.String headerName)
          
 void removeCorrespondingSipApplicationSession(SipApplicationSessionKey sipApplicationSession)
          Add a mapping between a corresponding sipSession related to a headerName.
 void removeCorrespondingSipSession(SipSessionKey sipSession)
          Add a mapping between a corresponding sipSession related to a headerName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SipSessionsUtilImpl

public SipSessionsUtilImpl(SipContext sipContext)
Method Detail

getApplicationSessionById

public SipApplicationSession getApplicationSessionById(java.lang.String applicationSessionId)

Specified by:
getApplicationSessionById in interface SipSessionsUtil

getApplicationSessionByKey

public SipApplicationSession getApplicationSessionByKey(java.lang.String applicationSessionKey,
                                                        boolean create)

Specified by:
getApplicationSessionByKey in interface SipSessionsUtil

getCorrespondingSipSession

public SipSession getCorrespondingSipSession(SipSession sipSession,
                                             java.lang.String headerName)

Specified by:
getCorrespondingSipSession in interface SipSessionsUtil

addCorrespondingSipSession

public void addCorrespondingSipSession(MobicentsSipSession newSession,
                                       MobicentsSipSession correspondingSipSession,
                                       java.lang.String headerName)
Add a mapping between a new session and a corresponding sipSession related to a headerName. See Also getCorrespondingSipSession method.

Parameters:
newSession - the new session
correspondingSipSession - the corresponding sip session to add
headerName - the header name

removeCorrespondingSipSession

public void removeCorrespondingSipSession(SipSessionKey sipSession)
Add a mapping between a corresponding sipSession related to a headerName. See Also getCorrespondingSipSession method.

Parameters:
correspondingSipSession - the corresponding sip session to add
headerName - the header name

getCorrespondingSipApplicationSession

public SipApplicationSessionKey getCorrespondingSipApplicationSession(SipApplicationSessionKey sipApplicationSessionKey,
                                                                      java.lang.String headerName)


addCorrespondingSipApplicationSession

public void addCorrespondingSipApplicationSession(SipApplicationSessionKey newApplicationSession,
                                                  SipApplicationSessionKey correspondingSipApplicationSession,
                                                  java.lang.String headerName)
Add a mapping between a new session and a corresponding sipSession related to a headerName. See Also getCorrespondingSipSession method.

Parameters:
newSession - the new session
correspondingSipSession - the corresponding sip session to add
headerName - the header name

removeCorrespondingSipApplicationSession

public void removeCorrespondingSipApplicationSession(SipApplicationSessionKey sipApplicationSession)
Add a mapping between a corresponding sipSession related to a headerName. See Also getCorrespondingSipSession method.

Parameters:
correspondingSipSession - the corresponding sip session to add
headerName - the header name


Copyright © 2011. All Rights Reserved.