public class SipFactoryImpl extends Object implements MobicentsSipFactory, Externalizable
| Modifier and Type | Class and Description |
|---|---|
static class |
SipFactoryImpl.NamesComparator |
| Modifier and Type | Field and Description |
|---|---|
static javax.sip.address.AddressFactory |
addressFactory |
static Set<String> |
FORBIDDEN_PARAMS |
static javax.sip.header.HeaderFactory |
headerFactory |
static javax.sip.message.MessageFactory |
messageFactory |
static javax.sip.SipFactory |
sipFactory |
| Constructor and Description |
|---|
SipFactoryImpl() |
SipFactoryImpl(SipApplicationDispatcher sipApplicationDispatcher)
Dafault constructor
|
public static javax.sip.address.AddressFactory addressFactory
public static javax.sip.header.HeaderFactory headerFactory
public static javax.sip.SipFactory sipFactory
public static javax.sip.message.MessageFactory messageFactory
public SipFactoryImpl()
public SipFactoryImpl(SipApplicationDispatcher sipApplicationDispatcher)
sipApplicationDispatcher - public void initialize(String pathName, boolean prettyEncoding)
initialize in interface MobicentsSipFactorypublic Address createAddress(String sipAddress) throws ServletParseException
createAddress in interface SipFactoryServletParseExceptionpublic Address createAddress(URI uri)
createAddress in interface SipFactorypublic Address createAddress(URI uri, String displayName)
createAddress in interface SipFactorypublic SipApplicationSession createApplicationSession()
createApplicationSession in interface SipFactorypublic MobicentsSipApplicationSession createApplicationSession(SipContext sipContext)
sipContext - public SipServletRequest createRequest(SipApplicationSession sipAppSession, String method, Address from, Address to, String handler, String originalCallId, String fromTagToUse)
public SipServletRequest createRequest(SipApplicationSession sipAppSession, String method, URI from, URI to, String handler)
public SipServletRequest createRequest(SipApplicationSession sipAppSession, String method, String from, String to, String handler) throws ServletParseException
ServletParseExceptionpublic SipServletRequest createRequest(SipServletRequest origRequest, boolean sameCallId)
createRequest in interface SipFactorypublic SipURI createSipURI(String user, String host)
createSipURI in interface SipFactorypublic URI createURI(String uri) throws ServletParseException
createURI in interface SipFactoryServletParseExceptionpublic Parameterable createParameterable(String value) throws ServletParseException
createParameterable in interface SipFactoryServletParseExceptionpublic SipApplicationRouterInfo getNextInterestedApplication(SipServletRequestImpl sipServletRequestImpl)
public SipApplicationSession createApplicationSessionByAppName(String sipAppName, boolean isContainerManaged)
public SipApplicationSession createApplicationSessionByKey(String sipApplicationKey)
createApplicationSessionByKey in interface SipFactorypublic AuthInfo createAuthInfo()
createAuthInfo in interface SipFactorypublic SipApplicationDispatcher getSipApplicationDispatcher()
getSipApplicationDispatcher in interface MobicentsSipFactorypublic void setSipApplicationDispatcher(SipApplicationDispatcher sipApplicationDispatcher)
sipApplicationDispatcher - the sipApplicationDispatcher to setpublic SipNetworkInterfaceManager getSipNetworkInterfaceManager()
public org.mobicents.ha.javax.sip.SipLoadBalancer getLoadBalancerToUse()
public void setLoadBalancerToUse(org.mobicents.ha.javax.sip.SipLoadBalancer loadBalancerToUse)
loadBalancerToUse - the loadBalancerToUse to setpublic boolean isUseLoadBalancer()
public void addLoadBalancerRouteHeader(javax.sip.message.Request request,
MobicentsExtendedListeningPoint mobicentsExtendedListeningPoint)
request - ParseExceptionpublic void addIpLoadBalancerRouteHeader(javax.sip.message.Request request,
String lbhost,
int lbport)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic boolean isRouteOrphanRequests()
isRouteOrphanRequests in interface SipFactoryExtpublic void setRouteOrphanRequests(boolean routeOrphanRequets)
setRouteOrphanRequests in interface SipFactoryExtpublic SipServletRequest createRequest(SipApplicationSession appSession, String method, Address from, Address to)
createRequest in interface SipFactorypublic SipServletRequest createRequest(SipApplicationSession appSession, String method, String from, String to) throws ServletParseException
createRequest in interface SipFactoryServletParseExceptionpublic SipServletRequest createRequest(SipApplicationSession appSession, String method, URI from, URI to)
createRequest in interface SipFactorypublic javax.sip.address.AddressFactory getAddressFactory()
getAddressFactory in interface MobicentsSipFactorypublic javax.sip.header.HeaderFactory getHeaderFactory()
getHeaderFactory in interface MobicentsSipFactorypublic javax.sip.message.MessageFactory getMessageFactory()
getMessageFactory in interface MobicentsSipFactorypublic javax.sip.SipFactory getJainSipFactory()
getJainSipFactory in interface MobicentsSipFactorypublic MobicentsSipServletMessageFactory getMobicentsSipServletMessageFactory()
getMobicentsSipServletMessageFactory in interface MobicentsSipFactoryprotected MobicentsSipServletMessageFactory initMobicentsSipServletMessageFactory()
public SipApplicationSession createApplicationSession(boolean managed)
createApplicationSession in interface SipFactoryExtpublic SipApplicationSession createApplicationSessionByKey(String sipApplicationKey, boolean managed)
createApplicationSessionByKey in interface SipFactoryExtCopyright © 2016. All Rights Reserved.