org.apache.myfaces.tobago.servlet
Class ResourceServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.myfaces.tobago.servlet.ResourceServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class ResourceServlet
extends HttpServlet

 <servlet>
   <servlet-name>ResourceServlet</servlet-name>
   <servlet-class>org.apache.myfaces.tobago.servlet.ResourceServlet</servlet-class>
   <init-param>
     <description>The value for the expires header in seconds.
       The default for ProjectStage.Production is 86400 sec (24 h) otherwise no expires header.</description>
     <param-name>expires</param-name>
     <param-value>14400</param-value>
   </init-param>
   <init-param>
     <description>The value for the copy buffer size.
            Default is 4096.</description>
     <param-name>bufferSize</param-name>
     <param-value>4096</param-value>
   </init-param>
 </servlet>
 <servlet-mapping>
   <servlet-name>ResourceServlet</servlet-name>
   <url-pattern>/org/apache/myfaces/tobago/renderkit/*</url-pattern>
 </servlet-mapping>
 

Since:
1.0.7
See Also:
Serialized Form

Constructor Summary
ResourceServlet()
           
 
Method Summary
protected  void doGet(HttpServletRequest request, HttpServletResponse response)
           
protected  long getLastModified(HttpServletRequest request)
           
 void init(ServletConfig servletConfig)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, 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

ResourceServlet

public ResourceServlet()
Method Detail

init

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

doGet

protected void doGet(HttpServletRequest request,
                     HttpServletResponse response)
              throws ServletException,
                     IOException
Overrides:
doGet in class HttpServlet
Throws:
ServletException
IOException

getLastModified

protected long getLastModified(HttpServletRequest request)
Overrides:
getLastModified in class HttpServlet


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.