org.mobicents.servlet.sip.proxy
Class ProxyTerminationInfo

java.lang.Object
  extended by org.mobicents.servlet.sip.proxy.ProxyTerminationInfo
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class ProxyTerminationInfo
extends java.lang.Object
implements java.io.Externalizable

PlaceHolder to store the information required to implement 3GPP TS 24.229 section 5.2.8.1.2. ie Termination of Session originating from the proxy.

Author:
Andrew Miller (Crocodile RCS)
See Also:
Serialized Form

Constructor Summary
ProxyTerminationInfo()
           
ProxyTerminationInfo(SipServletResponseImpl proxiedResponse, SipURI recordRouteURI, ProxyImpl proxyImpl)
           
 
Method Summary
 boolean isTerminationSent()
           
 void readExternal(java.io.ObjectInput in)
           
 void setProxy(ProxyImpl proxyImpl)
           
 void terminate(SipSession session, long callerCSeq, long calleeCSeq, int calleeResponseCode, java.lang.String calleeResponseText, int callerResponseCode, java.lang.String callerResponseText)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyTerminationInfo

public ProxyTerminationInfo()

ProxyTerminationInfo

public ProxyTerminationInfo(SipServletResponseImpl proxiedResponse,
                            SipURI recordRouteURI,
                            ProxyImpl proxyImpl)
Method Detail

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

setProxy

public void setProxy(ProxyImpl proxyImpl)

terminate

public void terminate(SipSession session,
                      long callerCSeq,
                      long calleeCSeq,
                      int calleeResponseCode,
                      java.lang.String calleeResponseText,
                      int callerResponseCode,
                      java.lang.String callerResponseText)
               throws java.io.IOException
Throws:
java.io.IOException

isTerminationSent

public boolean isTerminationSent()
Returns:
the terminationSent


Copyright © 2011. All Rights Reserved.