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, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ResourceServlet
extends javax.servlet.http.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(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  long getLastModified(javax.servlet.http.HttpServletRequest request)
           
 void init(javax.servlet.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(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

doGet

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

getLastModified

protected long getLastModified(javax.servlet.http.HttpServletRequest request)
Overrides:
getLastModified in class javax.servlet.http.HttpServlet


Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.