org.mobicents.servlet.sip.message
Class SipFactoryImpl
java.lang.Object
org.mobicents.servlet.sip.message.SipFactoryImpl
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable
public class SipFactoryImpl
- extends java.lang.Object
- implements java.io.Externalizable
- See Also:
- Serialized Form
|
Method Summary |
void |
addIpLoadBalancerRouteHeader(javax.sip.message.Request request,
java.lang.String lbhost,
int lbport)
|
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,
java.lang.String originalCallId,
java.lang.String fromTagToUse)
|
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)
|
org.mobicents.ha.javax.sip.SipLoadBalancer |
getLoadBalancerToUse()
|
SipApplicationRouterInfo |
getNextInterestedApplication(SipServletRequestImpl sipServletRequestImpl)
|
SipApplicationDispatcher |
getSipApplicationDispatcher()
|
SipNetworkInterfaceManager |
getSipNetworkInterfaceManager()
Retrieve the manager for the sip network interfaces |
boolean |
isUseLoadBalancer()
|
void |
readExternal(java.io.ObjectInput in)
|
void |
setLoadBalancerToUse(org.mobicents.ha.javax.sip.SipLoadBalancer loadBalancerToUse)
|
void |
setSipApplicationDispatcher(SipApplicationDispatcher sipApplicationDispatcher)
|
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FORBIDDEN_PARAMS
public static final java.util.Set<java.lang.String> FORBIDDEN_PARAMS
SipFactoryImpl
public SipFactoryImpl()
SipFactoryImpl
public SipFactoryImpl(SipApplicationDispatcher sipApplicationDispatcher)
- Dafault constructor
- Parameters:
sipApplicationDispatcher -
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,
java.lang.String originalCallId,
java.lang.String fromTagToUse)
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
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 org.mobicents.ha.javax.sip.SipLoadBalancer getLoadBalancerToUse()
- Returns:
- the loadBalancerToUse
setLoadBalancerToUse
public void setLoadBalancerToUse(org.mobicents.ha.javax.sip.SipLoadBalancer loadBalancerToUse)
- Parameters:
loadBalancerToUse - the loadBalancerToUse to set
isUseLoadBalancer
public boolean isUseLoadBalancer()
- Returns:
- the useLoadBalancer
addLoadBalancerRouteHeader
public void addLoadBalancerRouteHeader(javax.sip.message.Request request)
- Parameters:
request -
- Throws:
java.text.ParseException
addIpLoadBalancerRouteHeader
public void addIpLoadBalancerRouteHeader(javax.sip.message.Request request,
java.lang.String lbhost,
int lbport)
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal in interface java.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal in interface java.io.Externalizable
- Throws:
java.io.IOException
Copyright © 2010. All Rights Reserved.