org.apache.cocoon.servletservice
Class ServletService

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.apache.cocoon.servletservice.ServletService
All Implemented Interfaces:
ApplicationContextAware, BeanNameAware, DisposableBean, InitializingBean, Serializable, Servlet, ServletConfig, ServletContextAware, ServletServiceContextAware

public class ServletService
extends HttpServlet
implements ApplicationContextAware, ServletContextAware, BeanNameAware, InitializingBean, DisposableBean, ServletServiceContextAware

Version:
$Id: BlockServlet.java 496060 2007-01-14 11:03:06Z danielf $
See Also:
Serialized Form

Constructor Summary
ServletService()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  Servlet createEmbeddedServlet(String embeddedServletClassName, ServletConfig servletConfig)
          Creates and initializes the embedded servlet
 void destroy()
           
 String getMountPath()
           
 ServletContext getServletServiceContext()
          The servlet context used for inter servlet service communication
 void init(ServletConfig servletConfig)
           
protected  void service(HttpServletRequest request, HttpServletResponse response)
           
 void setApplicationContext(ApplicationContext applicationContext)
           
 void setBeanName(String beanName)
           
 void setBlockContextURL(String blockContextURL)
          The path to the blocks resources relative to the servlet context URL, must start with an '/'.
 void setConnections(Map connections)
           
 void setMountPath(String mountPath)
           
 void setProperties(Map properties)
           
 void setServletClass(String servletClass)
           
 void setServletContext(ServletContext servletContext)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletService

public ServletService()
Method Detail

init

public void init(ServletConfig servletConfig)
          throws ServletException
Specified by:
init in interface Servlet
Throws:
ServletException

createEmbeddedServlet

protected Servlet createEmbeddedServlet(String embeddedServletClassName,
                                        ServletConfig servletConfig)
                                 throws ServletException
Creates and initializes the embedded servlet

Throws:
ServletException

service

protected void service(HttpServletRequest request,
                       HttpServletResponse response)
                throws ServletException,
                       IOException
Throws:
ServletException
IOException

destroy

public void destroy()
Specified by:
destroy in interface DisposableBean

getServletServiceContext

public ServletContext getServletServiceContext()
Description copied from interface: ServletServiceContextAware
The servlet context used for inter servlet service communication

Specified by:
getServletServiceContext in interface ServletServiceContextAware
Returns:
the servletServiceContext

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)
                           throws BeansException
Specified by:
setApplicationContext in interface ApplicationContextAware
Throws:
BeansException

setServletContext

public void setServletContext(ServletContext servletContext)
Specified by:
setServletContext in interface ServletContextAware

setBeanName

public void setBeanName(String beanName)
Specified by:
setBeanName in interface BeanNameAware

setMountPath

public void setMountPath(String mountPath)

getMountPath

public String getMountPath()

setBlockContextURL

public void setBlockContextURL(String blockContextURL)
The path to the blocks resources relative to the servlet context URL, must start with an '/'.

Parameters:
blockContextURL -

setServletClass

public void setServletClass(String servletClass)

setProperties

public void setProperties(Map properties)

setConnections

public void setConnections(Map connections)

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception


Copyright © 1999-2007 The Apache Software Foundation. All Rights Reserved.