org.mobicents.servlet.sip.message
Class SipFactoryImpl

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

public class SipFactoryImpl
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
static class SipFactoryImpl.NamesComparator
           
 
Constructor Summary
SipFactoryImpl(SipApplicationDispatcher sipApplicationDispatcher)
          Dafault constructor
 
Method Summary
 void addLoadBalancerRouteHeader(javax.sip.message.Request request)
           
 Address createAddress(java.lang.String sipAddress)
           
 Address createAddress(URI uri)
           
 Address createAddress(URI uri, java.lang.String displayName)
           
 SipApplicationSession createApplicationSession()
           
 SipApplicationSession createApplicationSession(SipContext sipContext)
          Creates an application session associated with the context
 SipApplicationSession createApplicationSessionByAppName(java.lang.String sipAppName)
           
 SipApplicationSession createApplicationSessionByKey(java.lang.String sipApplicationKey)
           
 AuthInfo createAuthInfo()
           
 Parameterable createParameterable(java.lang.String value)
          
 SipServletRequest createRequest(SipApplicationSession sipAppSession, java.lang.String method, Address from, Address to, java.lang.String handler)
           
 SipServletRequest createRequest(SipApplicationSession sipAppSession, java.lang.String method, java.lang.String from, java.lang.String to, java.lang.String handler)
           
 SipServletRequest createRequest(SipApplicationSession sipAppSession, java.lang.String method, URI from, URI to, java.lang.String handler)
           
 SipServletRequest createRequest(SipServletRequest origRequest, boolean sameCallId)
           
 SipURI createSipURI(java.lang.String user, java.lang.String host)
           
 URI createURI(java.lang.String uri)
           
 BalancerDescription getLoadBalancerToUse()
           
 SipApplicationRouterInfo getNextInterestedApplication(SipServletRequestImpl sipServletRequestImpl)
          
 SessionManagerUtil getSessionManager()
           
 SipApplicationDispatcher getSipApplicationDispatcher()
           
 SipNetworkInterfaceManager getSipNetworkInterfaceManager()
          Retrieve the manager for the sip network interfaces
 boolean isUseLoadBalancer()
           
 void setLoadBalancerToUse(BalancerDescription loadBalancerToUse)
           
 void setSipApplicationDispatcher(SipApplicationDispatcher sipApplicationDispatcher)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SipFactoryImpl

public SipFactoryImpl(SipApplicationDispatcher sipApplicationDispatcher)
Dafault constructor

Parameters:
sipApplicationDispatcher -
Method Detail

createAddress

public Address createAddress(java.lang.String sipAddress)
                      throws ServletParseException
Throws:
ServletParseException

createAddress

public Address createAddress(URI uri)

createAddress

public Address createAddress(URI uri,
                             java.lang.String displayName)

createApplicationSession

public SipApplicationSession createApplicationSession()

createApplicationSession

public SipApplicationSession createApplicationSession(SipContext sipContext)
Creates an application session associated with the context

Parameters:
sipContext -
Returns:

createRequest

public SipServletRequest createRequest(SipApplicationSession sipAppSession,
                                       java.lang.String method,
                                       Address from,
                                       Address to,
                                       java.lang.String handler)

createRequest

public SipServletRequest createRequest(SipApplicationSession sipAppSession,
                                       java.lang.String method,
                                       URI from,
                                       URI to,
                                       java.lang.String handler)

createRequest

public SipServletRequest createRequest(SipApplicationSession sipAppSession,
                                       java.lang.String method,
                                       java.lang.String from,
                                       java.lang.String to,
                                       java.lang.String handler)
                                throws ServletParseException
Throws:
ServletParseException

createRequest

public SipServletRequest createRequest(SipServletRequest origRequest,
                                       boolean sameCallId)

createSipURI

public SipURI createSipURI(java.lang.String user,
                           java.lang.String host)

createURI

public URI createURI(java.lang.String uri)
              throws ServletParseException
Throws:
ServletParseException

createParameterable

public Parameterable createParameterable(java.lang.String value)
                                  throws ServletParseException

Throws:
ServletParseException

getSessionManager

public SessionManagerUtil getSessionManager()
Returns:
the sessionManager

getNextInterestedApplication

public SipApplicationRouterInfo getNextInterestedApplication(SipServletRequestImpl sipServletRequestImpl)


createApplicationSessionByAppName

public SipApplicationSession createApplicationSessionByAppName(java.lang.String sipAppName)

createApplicationSessionByKey

public SipApplicationSession createApplicationSessionByKey(java.lang.String sipApplicationKey)

createAuthInfo

public AuthInfo createAuthInfo()

getSipApplicationDispatcher

public SipApplicationDispatcher getSipApplicationDispatcher()
Returns:
the sipApplicationDispatcher

setSipApplicationDispatcher

public void setSipApplicationDispatcher(SipApplicationDispatcher sipApplicationDispatcher)
Parameters:
sipApplicationDispatcher - the sipApplicationDispatcher to set

getSipNetworkInterfaceManager

public SipNetworkInterfaceManager getSipNetworkInterfaceManager()
Retrieve the manager for the sip network interfaces

Returns:
the manager for the sip network interfaces

getLoadBalancerToUse

public BalancerDescription getLoadBalancerToUse()
Returns:
the loadBalancerToUse

setLoadBalancerToUse

public void setLoadBalancerToUse(BalancerDescription loadBalancerToUse)
Parameters:
loadBalancerToUse - the loadBalancerToUse to set

isUseLoadBalancer

public boolean isUseLoadBalancer()
Returns:
the useLoadBalancer

addLoadBalancerRouteHeader

public void addLoadBalancerRouteHeader(javax.sip.message.Request request)
                                throws java.text.ParseException
Parameters:
request -
Throws:
java.text.ParseException


Copyright © 2008. All Rights Reserved.