org.mobicents.servlet.sip.message
Class SipFactoryFacade

java.lang.Object
  extended by org.mobicents.servlet.sip.message.SipFactoryFacade
All Implemented Interfaces:
java.io.Serializable, SipFactory

public class SipFactoryFacade
extends java.lang.Object
implements SipFactory, java.io.Serializable

Facade object which masks the internal SipFactoryImpl object from the web application.

Author:
Jean Deruelle
See Also:
Serialized Form

Constructor Summary
SipFactoryFacade(SipFactoryImpl sipFactoryImpl, SipContext sipContext)
           
 
Method Summary
 Address createAddress(java.lang.String sipAddress)
           
 Address createAddress(URI uri)
           
 Address createAddress(URI uri, java.lang.String displayName)
           
 SipApplicationSession createApplicationSession()
           
 SipApplicationSession createApplicationSessionByAppName(java.lang.String arg0)
          
 SipApplicationSession createApplicationSessionByKey(java.lang.String sipApplicationKey)
          
 AuthInfo createAuthInfo()
          
 Parameterable createParameterable(java.lang.String s)
           
 SipServletRequest createRequest(SipApplicationSession appSession, java.lang.String method, Address from, Address to)
           
 SipServletRequest createRequest(SipApplicationSession appSession, java.lang.String method, java.lang.String from, java.lang.String to)
           
 SipServletRequest createRequest(SipApplicationSession appSession, java.lang.String method, URI from, URI to)
           
 SipServletRequest createRequest(SipServletRequest origRequest, boolean sameCallId)
           
 SipURI createSipURI(java.lang.String user, java.lang.String host)
           
 URI createURI(java.lang.String uri)
           
 javax.servlet.http.HttpSession retrieveHttpSession()
          Retrieve the http session previously stored in the sip Factory's thread local
 void storeHttpSession(javax.servlet.http.HttpSession httpSession)
          Store the http session in the sip Factory's thread local
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SipFactoryFacade

public SipFactoryFacade(SipFactoryImpl sipFactoryImpl,
                        SipContext sipContext)
Method Detail

createAddress

public Address createAddress(java.lang.String sipAddress)
                      throws ServletParseException
Specified by:
createAddress in interface SipFactory
Throws:
ServletParseException

createAddress

public Address createAddress(URI uri)
Specified by:
createAddress in interface SipFactory

createAddress

public Address createAddress(URI uri,
                             java.lang.String displayName)
Specified by:
createAddress in interface SipFactory

createApplicationSession

public SipApplicationSession createApplicationSession()
Specified by:
createApplicationSession in interface SipFactory

createParameterable

public Parameterable createParameterable(java.lang.String s)
                                  throws ServletParseException
Specified by:
createParameterable in interface SipFactory
Throws:
ServletParseException

createRequest

public SipServletRequest createRequest(SipApplicationSession appSession,
                                       java.lang.String method,
                                       Address from,
                                       Address to)
Specified by:
createRequest in interface SipFactory

createRequest

public SipServletRequest createRequest(SipApplicationSession appSession,
                                       java.lang.String method,
                                       java.lang.String from,
                                       java.lang.String to)
                                throws ServletParseException
Specified by:
createRequest in interface SipFactory
Throws:
ServletParseException

createRequest

public SipServletRequest createRequest(SipApplicationSession appSession,
                                       java.lang.String method,
                                       URI from,
                                       URI to)
Specified by:
createRequest in interface SipFactory

createRequest

public SipServletRequest createRequest(SipServletRequest origRequest,
                                       boolean sameCallId)
Specified by:
createRequest in interface SipFactory

createSipURI

public SipURI createSipURI(java.lang.String user,
                           java.lang.String host)
Specified by:
createSipURI in interface SipFactory

createURI

public URI createURI(java.lang.String uri)
              throws ServletParseException
Specified by:
createURI in interface SipFactory
Throws:
ServletParseException

storeHttpSession

public void storeHttpSession(javax.servlet.http.HttpSession httpSession)
Store the http session in the sip Factory's thread local

Parameters:
httpSession - the http session to store for later retrieval

retrieveHttpSession

public javax.servlet.http.HttpSession retrieveHttpSession()
Retrieve the http session previously stored in the sip Factory's thread local

Returns:
the http session previously stored in the sip Factory's thread local

createApplicationSessionByKey

public SipApplicationSession createApplicationSessionByKey(java.lang.String sipApplicationKey)

Specified by:
createApplicationSessionByKey in interface SipFactory

createAuthInfo

public AuthInfo createAuthInfo()

Specified by:
createAuthInfo in interface SipFactory

createApplicationSessionByAppName

public SipApplicationSession createApplicationSessionByAppName(java.lang.String arg0)



Copyright © 2008. All Rights Reserved.