org.mortbay.jetty.servlet
public class Default extends HttpServlet
acceptRanges If true, range requests and responses are supported dirAllowed If true, directory listings are returned if no welcome file is found. Else 403 Forbidden. putAllowed If true, the PUT method is allowed delAllowed If true, the DELETE method is allowed redirectWelcome If true, welcome files are redirected rather than forwarded to. minGzipLength If set to a positive integer, then static content larger than this will be served as gzip content encoded if a matching resource is found ending with ".gz" resourceBase Set to replace the context resource base relativeResourceBase Set with a pathname relative to the base of the servlet context root. Useful for only serving static content out of only specific subdirectories.The MOVE method is allowed if PUT and DELETE are allowed
Version: $Id: Default.java,v 1.51 2006/10/08 14:13:18 gregwilkins Exp $
Method Summary | |
---|---|
protected Resource | getResource(String pathInContext)
get Resource to serve. |
void | handleDelete(HttpServletRequest request, HttpServletResponse response, String pathInContext, Resource resource) |
void | handleGet(HttpServletRequest request, HttpServletResponse response, String pathInContext, Resource resource, boolean endsWithSlash) |
void | handleMove(HttpServletRequest request, HttpServletResponse response, String pathInContext, Resource resource) |
void | handleOptions(HttpServletRequest request, HttpServletResponse response) |
void | handlePut(HttpServletRequest request, HttpServletResponse response, String pathInContext, Resource resource) |
void | init() |
protected boolean | passConditionalHeaders(HttpServletRequest request, HttpServletResponse response, Resource resource) |
protected void | sendData(HttpServletRequest request, HttpServletResponse response, String pathInContext, Resource resource) |
protected void | sendDirectory(HttpServletRequest request, HttpServletResponse response, Resource resource, boolean parent) |
protected void | service(HttpServletRequest request, HttpServletResponse response) |
protected void | writeHeaders(HttpServletResponse response, Resource resource, long count) |
Parameters: pathInContext The path to find a resource for.
Returns: The resource to serve.