Class ResourceServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    @Deprecated
    public class ResourceServlet
    extends javax.servlet.http.HttpServlet
    Deprecated.
    since Tobago 3.0.x this is no longer needed
     <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

      Constructors 
      Constructor Description
      ResourceServlet()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected void doGet​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Deprecated.
       
      protected long getLastModified​(javax.servlet.http.HttpServletRequest request)
      Deprecated.
       
      void init​(javax.servlet.ServletConfig servletConfig)
      Deprecated.
       
      • 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
    • Constructor Detail

      • ResourceServlet

        public ResourceServlet()
        Deprecated.
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig servletConfig)
                  throws javax.servlet.ServletException
        Deprecated.
        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
        Deprecated.
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • getLastModified

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