org.mobicents.servlet.sip.core.dispatchers
Class CancelRequestDispatcher

java.lang.Object
  extended by org.mobicents.servlet.sip.core.dispatchers.MessageDispatcher
      extended by org.mobicents.servlet.sip.core.dispatchers.RequestDispatcher
          extended by org.mobicents.servlet.sip.core.dispatchers.CancelRequestDispatcher

public class CancelRequestDispatcher
extends RequestDispatcher

This class implements the logic for routing CANCEL requests along the application path followed by the INVITE.
CANCEL deserves a special treatment since they are routed hop by hop.

Algorithm used : We can distinguish 2 cases here as per spec :

Author:
Jean Deruelle

Field Summary
 
Fields inherited from class org.mobicents.servlet.sip.core.dispatchers.MessageDispatcher
APP_NOT_DEPLOYED, FINAL_RESPONSE, GENERATED_APP_KEY, MODIFIER, NO_APP_RETURNED, ROUTE_PARAM_DIRECTIVE, ROUTE_PARAM_NODE_HOST, ROUTE_PARAM_NODE_PORT, ROUTE_PARAM_PREV_APPLICATION_NAME, RR_PARAM_APPLICATION_NAME, sipApplicationDispatcher
 
Constructor Summary
CancelRequestDispatcher(SipApplicationDispatcher sipApplicationDispatcher)
           
 
Method Summary
 void dispatchMessage(javax.sip.SipProvider sipProvider, SipServletMessageImpl sipServletMessage)
          Responsible for routing and dispatching a SIP message to the correct application
 
Methods inherited from class org.mobicents.servlet.sip.core.dispatchers.RequestDispatcher
forwardRequestStatefully
 
Methods inherited from class org.mobicents.servlet.sip.core.dispatchers.MessageDispatcher
callServlet, callServlet, getConcurrencyModelExecutorService, makeAppSessionKey, securityCheck, sendErrorResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CancelRequestDispatcher

public CancelRequestDispatcher(SipApplicationDispatcher sipApplicationDispatcher)
Method Detail

dispatchMessage

public void dispatchMessage(javax.sip.SipProvider sipProvider,
                            SipServletMessageImpl sipServletMessage)
                     throws DispatcherException
Responsible for routing and dispatching a SIP message to the correct application

Specified by:
dispatchMessage in class MessageDispatcher
Parameters:
sipProvider - use the sipProvider to route the message if needed, can be null
sipServletMessage - the SIP message to route and dispatch
Throws:
DispatcherException


Copyright © 2008. All Rights Reserved.