Save This Page
Home » trinidad-1.2.8-src-all » org.apache.myfaces.trinidad » webapp » [javadoc | source]
org.apache.myfaces.trinidad.webapp
public class: ResourceServlet [javadoc | source]
java.lang.Object
   javax.servlet.GenericServlet
      javax.servlet.http.HttpServlet
         org.apache.myfaces.trinidad.webapp.ResourceServlet

All Implemented Interfaces:
    Serializable, Servlet, ServletConfig

A Servlet which serves up web application resources (images, style sheets, JavaScript libraries) by delegating to a ResourceLoader. The servlet path at which this servlet is registered is used to lookup the class name of the resource loader implementation. For example, if this servlet is registered with name "resources" and URL pattern "/images/*", then its servlet path is "/images". This is used to construct the class loader lookup for the text file "/META-INF/servlets/resources/images.resources" which contains a single line entry with the class name of the resource loader to use. This technique is very similar to "/META-INF/services" lookup that allows the implementation object to implement an interface in the public API and be used by the public API but reside in a private implementation JAR.
Field Summary
public static final  String DEBUG_INIT_PARAM    Context parameter for activating debug mode, which will disable caching. 
public static final  long ONE_YEAR_MILLIS     
Method from org.apache.myfaces.trinidad.webapp.ResourceServlet Summary:
destroy,   doGet,   getLastModified,   getResourcePath,   init,   service
Methods from javax.servlet.http.HttpServlet:
service
Methods from javax.servlet.GenericServlet:
destroy,   getInitParameter,   getInitParameterNames,   getServletConfig,   getServletContext,   getServletInfo,   getServletName,   init,   init,   log,   log,   service
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.myfaces.trinidad.webapp.ResourceServlet Detail:
 public  void destroy() 
    Override of Servlet.destroy();
 protected  void doGet(HttpServletRequest request,
    HttpServletResponse response) throws IOException, ServletException 
    Override of HttpServlet.doGet()
 protected long getLastModified(HttpServletRequest request) 
    Override of HttpServlet.getLastModified()
 protected String getResourcePath(HttpServletRequest request) 
    Returns the resource path from the http servlet request.
 public  void init(ServletConfig config) throws ServletException 
    Override of Servlet.init();
 public  void service(ServletRequest request,
    ServletResponse response) throws IOException, ServletException