| javax.servlet.http.HttpServlet com.flexive.war.webdav.DefaultServlet
All known Subclasses: com.flexive.war.webdav.FxWebDavServletBase,
DefaultServlet | public class DefaultServlet extends HttpServlet (Code) | | The default resource-serving servlets for most web applications,
used to serve static resources such as HTML pages and images.
author: Craig R. McClanahan author: Remy Maucherat version: $Rev: 1 $ |
Method Summary | |
protected boolean | checkIfHeaders(HttpServletRequest request, HttpServletResponse response, ResourceAttributes resourceAttributes) Check if the conditions specified in the optional If headers are
satisfied. | public void | destroy() Finalize this servlets. | protected void | displaySize(StringBuffer buf, int filesize) Display the size of a file. | protected void | doDelete(HttpServletRequest req, HttpServletResponse resp) Process a POST request for the specified resource. | protected void | doGet(HttpServletRequest request, HttpServletResponse response) Process a GET request for the specified resource. | protected void | doHead(HttpServletRequest request, HttpServletResponse response) Process a HEAD request for the specified resource. | protected void | doPost(HttpServletRequest request, HttpServletResponse response) Process a POST request for the specified resource. | protected void | doPut(HttpServletRequest req, HttpServletResponse resp) Process a POST request for the specified resource. | protected File | executePartialPut(HttpServletRequest req, Range range, String path) Handle a partial PUT. | protected InputStream | findXsltInputStream(DirContext directory) | protected String | getETag(ResourceAttributes resourceAttributes) Get the ETag associated with a file. | protected String | getReadme(DirContext directory) Get the readme file as a string. | protected String | getRelativePath(HttpServletRequest request) Return the relative path associated with this servlets. | public void | init() Initialize this servlets. | protected Range | parseContentRange(HttpServletRequest request, HttpServletResponse response) Parse the content-range header. | protected Vector | parseRange(HttpServletRequest request, HttpServletResponse response, ResourceAttributes resourceAttributes) Parse the range header. | protected InputStream | render(String contextPath, CacheEntry cacheEntry) Decide which way to render. | protected String | renderSize(long size) Render the specified file size (in bytes). | protected InputStream | renderXml(String contextPath, CacheEntry cacheEntry, InputStream xsltInputStream) Return an InputStream to an HTML representation of the contents
of this directory. | protected static String | rewriteUrl(String path) URL rewriter. | protected void | serveResource(HttpServletRequest request, HttpServletResponse response, boolean content) Serve the specified resource, optionally including the data content. |
RESOURCES_JNDI_NAME | final protected static String RESOURCES_JNDI_NAME(Code) | | JNDI resources name.
|
debug | protected int debug(Code) | | The debugging detail level for this servlets.
|
fileEncoding | protected String fileEncoding(Code) | | File encoding to be used when reading static files. If none is specified
the platform default is used.
|
globalXsltFile | protected String globalXsltFile(Code) | | Allow customized directory listing per instance.
|
input | protected int input(Code) | | The input buffer size to use when serving resources.
|
listings | protected boolean listings(Code) | | Should we generate directory listings?
|
localXsltFile | protected String localXsltFile(Code) | | Allow customized directory listing per directory.
|
mimeSeparation | final protected static String mimeSeparation(Code) | | MIME multipart separation string
|
output | protected int output(Code) | | The output buffer size to use when serving resources.
|
readOnly | protected boolean readOnly(Code) | | Read only flag. By default, it's set to true.
|
readmeFile | protected String readmeFile(Code) | | Allow a readme file to be included.
|
urlEncoder | final protected static URLEncoder urlEncoder(Code) | | Array containing the safe characters set.
|
checkIfHeaders | protected boolean checkIfHeaders(HttpServletRequest request, HttpServletResponse response, ResourceAttributes resourceAttributes) throws IOException(Code) | | Check if the conditions specified in the optional If headers are
satisfied.
Parameters: request - The servlets request we are processing Parameters: response - The servlets response we are creating Parameters: resourceAttributes - The resource information boolean true if the resource meets all the specified conditions,and false if any of the conditions is not satisfied, in which caserequest processing is stopped |
destroy | public void destroy()(Code) | | Finalize this servlets.
|
displaySize | protected void displaySize(StringBuffer buf, int filesize)(Code) | | Display the size of a file.
|
executePartialPut | protected File executePartialPut(HttpServletRequest req, Range range, String path) throws IOException(Code) | | Handle a partial PUT. New content specified in request is appended to
existing content in oldRevisionContent (if present). This code does
not support simultaneous partial updates to the same resource.
|
findXsltInputStream | protected InputStream findXsltInputStream(DirContext directory)(Code) | | Return the xsl template inputstream (if possible)
|
getETag | protected String getETag(ResourceAttributes resourceAttributes)(Code) | | Get the ETag associated with a file.
Parameters: resourceAttributes - The resource information |
getRelativePath | protected String getRelativePath(HttpServletRequest request)(Code) | | Return the relative path associated with this servlets.
Parameters: request - The servlets request we are processing |
parseContentRange | protected Range parseContentRange(HttpServletRequest request, HttpServletResponse response) throws IOException(Code) | | Parse the content-range header.
Parameters: request - The servlets request we are processing Parameters: response - The servlets response we are creating Range |
renderSize | protected String renderSize(long size)(Code) | | Render the specified file size (in bytes).
Parameters: size - File size (in bytes) |
renderXml | protected InputStream renderXml(String contextPath, CacheEntry cacheEntry, InputStream xsltInputStream) throws IOException(Code) | | Return an InputStream to an HTML representation of the contents
of this directory.
Parameters: contextPath - Context path to which our internal paths arerelative |
rewriteUrl | protected static String rewriteUrl(String path)(Code) | | URL rewriter.
Parameters: path - Path which has to be rewiten |
serveResource | protected void serveResource(HttpServletRequest request, HttpServletResponse response, boolean content) throws IOException, ServletException(Code) | | Serve the specified resource, optionally including the data content.
Parameters: request - The servlets request we are processing Parameters: response - The servlets response we are creating Parameters: content - Should the content be included? throws: IOException - if an input/output error occurs throws: ServletException - if a servlets-specified error occurs |
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|