public class ProxyImpl extends Object implements MobicentsProxy, Externalizable
| Modifier and Type | Field and Description |
|---|---|
protected SipURIImpl |
pathURI |
protected SipURI |
recordRouteURI |
| Constructor and Description |
|---|
ProxyImpl() |
ProxyImpl(SipServletRequestImpl request,
SipFactoryImpl sipFactoryImpl) |
protected transient SipURIImpl pathURI
protected transient SipURI recordRouteURI
public ProxyImpl()
public ProxyImpl(SipServletRequestImpl request, SipFactoryImpl sipFactoryImpl)
public void putTransaction(SipServletRequestImpl request)
public void removeTransaction(String txId)
public void cancelAllExcept(ProxyBranch except, String[] protocol, int[] reasonCode, String[] reasonText, boolean throwExceptionIfCannotCancel)
cancelAllExcept in interface MobicentsProxypublic List<ProxyBranch> createProxyBranches(List<? extends URI> targets)
createProxyBranches in interface Proxypublic boolean getAddToPath()
getAddToPath in interface Proxypublic SipServletRequest getOriginalRequest()
getOriginalRequest in interface Proxypublic boolean getParallel()
getParallel in interface Proxypublic SipURI getPathURI()
getPathURI in interface Proxypublic ProxyBranch getProxyBranch(URI uri)
getProxyBranch in interface Proxypublic List<ProxyBranch> getProxyBranches()
getProxyBranches in interface Proxypublic Map<URI,ProxyBranchImpl> getProxyBranchesMap()
public MobicentsProxyBranch getFinalBranchForSubsequentRequests()
getFinalBranchForSubsequentRequests in interface MobicentsProxypublic int getProxyTimeout()
getProxyTimeout in interface Proxypublic boolean getRecordRoute()
getRecordRoute in interface Proxypublic SipURI getRecordRouteURI()
getRecordRouteURI in interface Proxypublic boolean getRecurse()
getRecurse in interface Proxypublic int getSequentialSearchTimeout()
getSequentialSearchTimeout in interface Proxypublic boolean getStateful()
getStateful in interface Proxypublic boolean getSupervised()
getSupervised in interface Proxypublic void setAddToPath(boolean p)
setAddToPath in interface Proxypublic void setParallel(boolean parallel)
setParallel in interface Proxypublic void setProxyTimeout(int seconds)
setProxyTimeout in interface Proxypublic void setRecordRoute(boolean rr)
setRecordRoute in interface Proxypublic void setRecurse(boolean recurse)
setRecurse in interface Proxypublic void setSequentialSearchTimeout(int seconds)
setSequentialSearchTimeout in interface Proxypublic void setStateful(boolean stateful)
setStateful in interface Proxypublic void setSupervised(boolean supervised)
setSupervised in interface Proxypublic void startProxy()
startProxy in interface Proxypublic SipURI getOutboundInterface()
public void onFinalResponse(ProxyBranchImpl branch) throws DispatcherException
DispatcherExceptionpublic void onBranchTimeOut(ProxyBranchImpl branch) throws DispatcherException
DispatcherExceptionpublic void startNextUntriedBranch()
public boolean allResponsesHaveArrived()
public void sendFinalResponse(MobicentsSipServletResponse response, ProxyBranchImpl proxyBranch) throws DispatcherException
DispatcherExceptionpublic SipServletResponseImpl getBestResponse()
public void setOriginalRequest(MobicentsSipServletRequest originalRequest)
setOriginalRequest in interface MobicentsProxypublic boolean getNoCancel()
getNoCancel in interface Proxypublic void setNoCancel(boolean isNoCancel)
setNoCancel in interface Proxypublic SipFactoryImpl getSipFactoryImpl()
public void setMobicentsSipFactory(MobicentsSipFactory sipFactoryImpl)
sipFactoryImpl - the sipFactoryImpl to setpublic void setOutboundInterface(InetAddress inetAddress)
setOutboundInterface in interface Proxypublic void setOutboundInterface(InetSocketAddress inetSocketAddress)
setOutboundInterface in interface Proxypublic void setOutboundInterface(SipURI outboundInterface)
setOutboundInterface in interface ProxyExtpublic void setAckReceived(boolean received)
setAckReceived in interface MobicentsProxypublic boolean getAckReceived()
public SipURI getPreviousNode()
public String getCallerFromTag()
public void setCallerFromTag(String initiatorFromTag)
public Map<String,TransactionApplicationData> getTransactionMap()
getTransactionMap in interface MobicentsProxypublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic int getProxy1xxTimeout()
getProxy1xxTimeout in interface ProxyExtpublic void setProxy1xxTimeout(int timeout)
setProxy1xxTimeout in interface ProxyExtpublic ProxyTimerService getProxyTimerService()
public void addProxyBranch(ProxyBranchImpl proxyBranchImpl)
public void storeTerminationInformation(boolean store)
throws IllegalStateException
storeTerminationInformation in interface ProxyExtIllegalStateExceptionpublic void terminateSession(SipSession session, int calleeResponseCode, String calleeResponseText, int callerResponseCode, String callerResponseText) throws IllegalStateException, IOException
terminateSession in interface ProxyExtIllegalStateExceptionIOExceptionpublic boolean isTerminationSent()
isTerminationSent in interface MobicentsProxypublic int getBestResponseSent()
public boolean getSipOutboundSupport()
getSipOutboundSupport in interface ProxyExtpublic void setSipOutboundSupport(boolean sipOutboundSupport)
setSipOutboundSupport in interface ProxyExtCopyright © 2014. All Rights Reserved.