org.mobicents.servlet.sip.testsuite
Class PublishSipServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.sip.SipServlet
          extended by org.mobicents.servlet.sip.testsuite.PublishSipServlet
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.servlet.Servlet, javax.servlet.ServletConfig, SipServletListener, TimerListener

public class PublishSipServlet
extends SipServlet
implements SipServletListener, TimerListener

Author:
Jean Deruelle
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.sip.SipServlet
OUTBOUND_INTERFACES, PRACK_SUPPORTED, SIP_FACTORY, SIP_SESSIONS_UTIL, SUPPORTED, SUPPORTED_RFCs, TIMER_SERVICE
 
Constructor Summary
PublishSipServlet()
          Creates a new instance of PublishSipServlet
 
Method Summary
protected  void doPublish(SipServletRequest request)
           
protected  void doSubscribe(SipServletRequest request)
          
protected  void doSuccessResponse(SipServletResponse resp)
           
 void init(javax.servlet.ServletConfig servletConfig)
           
 void servletInitialized(SipServletContextEvent ce)
           
 void timeout(ServletTimer timer)
           
 
Methods inherited from class javax.servlet.sip.SipServlet
doAck, doBranchResponse, doBye, doCancel, doErrorResponse, doInfo, doInvite, doMessage, doNotify, doOptions, doPrack, doProvisionalResponse, doRedirectResponse, doRefer, doRegister, doRequest, doResponse, doUpdate, log, log, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublishSipServlet

public PublishSipServlet()
Creates a new instance of PublishSipServlet

Method Detail

init

public void init(javax.servlet.ServletConfig servletConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

doSuccessResponse

protected void doSuccessResponse(SipServletResponse resp)
                          throws javax.servlet.ServletException,
                                 java.io.IOException
Overrides:
doSuccessResponse in class SipServlet
Throws:
javax.servlet.ServletException
java.io.IOException

doSubscribe

protected void doSubscribe(SipServletRequest request)
                    throws javax.servlet.ServletException,
                           java.io.IOException

Overrides:
doSubscribe in class SipServlet
Throws:
javax.servlet.ServletException
java.io.IOException

doPublish

protected void doPublish(SipServletRequest request)
                  throws javax.servlet.ServletException,
                         java.io.IOException
Overrides:
doPublish in class SipServlet
Throws:
javax.servlet.ServletException
java.io.IOException

servletInitialized

public void servletInitialized(SipServletContextEvent ce)
Specified by:
servletInitialized in interface SipServletListener

timeout

public void timeout(ServletTimer timer)
Specified by:
timeout in interface TimerListener


Copyright © 2009. All Rights Reserved.