| org.apache.catalina.servlets.DefaultServlet org.apache.catalina.servlets.WebdavServlet
WebdavServlet | public class WebdavServlet extends DefaultServlet (Code) | | Servlet which adds support for WebDAV level 2. All the basic HTTP requests
are handled by the DefaultServlet.
author: Remy Maucherat version: $Revision: 543681 $ $Date: 2007-06-02 02:42:59 +0200 (sam., 02 juin 2007) $ |
Method Summary | |
protected boolean | checkIfHeaders(HttpServletRequest request, HttpServletResponse response, ResourceAttributes resourceAttributes) Check if the conditions specified in the optional If headers are
satisfied. | protected void | doCopy(HttpServletRequest req, HttpServletResponse resp) COPY Method. | protected void | doDelete(HttpServletRequest req, HttpServletResponse resp) DELETE Method. | protected void | doLock(HttpServletRequest req, HttpServletResponse resp) LOCK Method. | protected void | doMkcol(HttpServletRequest req, HttpServletResponse resp) MKCOL Method. | protected void | doMove(HttpServletRequest req, HttpServletResponse resp) MOVE Method. | protected void | doOptions(HttpServletRequest req, HttpServletResponse resp) OPTIONS Method. | protected void | doPropfind(HttpServletRequest req, HttpServletResponse resp) PROPFIND Method. | protected void | doProppatch(HttpServletRequest req, HttpServletResponse resp) PROPPATCH Method. | protected void | doPut(HttpServletRequest req, HttpServletResponse resp) Process a POST request for the specified resource. | protected void | doUnlock(HttpServletRequest req, HttpServletResponse resp) UNLOCK Method. | protected DocumentBuilder | getDocumentBuilder() Return JAXP document builder instance. | public void | init() Initialize this servlet. | protected String | normalize(String path) Return a context-relative path, beginning with a "/", that represents
the canonical version of the specified path after ".." and "." elements
are resolved out. | protected void | service(HttpServletRequest req, HttpServletResponse resp) Handles the special WebDAV methods. |
DEFAULT_NAMESPACE | final protected static String DEFAULT_NAMESPACE(Code) | | Default namespace.
|
creationDateFormat | final protected static SimpleDateFormat creationDateFormat(Code) | | Simple date format for the creation date ISO representation (partial).
|
md5Encoder | final protected static MD5Encoder md5Encoder(Code) | | The MD5 helper object for this class.
|
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 servlet request we are processing Parameters: response - The servlet 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 |
normalize | protected String normalize(String path)(Code) | | Return a context-relative path, beginning with a "/", that represents
the canonical version of the specified path after ".." and "." elements
are resolved out. If the specified path attempts to go outside the
boundaries of the current context (i.e. too many ".." path elements
are present), return null instead.
Parameters: path - Path to be normalized |
Methods inherited from org.apache.catalina.servlets.DefaultServlet | protected boolean checkIfHeaders(HttpServletRequest request, HttpServletResponse response, ResourceAttributes resourceAttributes) throws IOException(Code)(Java Doc) protected boolean checkIfMatch(HttpServletRequest request, HttpServletResponse response, ResourceAttributes resourceAttributes) throws IOException(Code)(Java Doc) protected boolean checkIfModifiedSince(HttpServletRequest request, HttpServletResponse response, ResourceAttributes resourceAttributes) throws IOException(Code)(Java Doc) protected boolean checkIfNoneMatch(HttpServletRequest request, HttpServletResponse response, ResourceAttributes resourceAttributes) throws IOException(Code)(Java Doc) protected boolean checkIfUnmodifiedSince(HttpServletRequest request, HttpServletResponse response, ResourceAttributes resourceAttributes) throws IOException(Code)(Java Doc) protected boolean checkSendfile(HttpServletRequest request, HttpServletResponse response, CacheEntry entry, long length, Range range)(Code)(Java Doc) protected void copy(CacheEntry cacheEntry, InputStream is, ServletOutputStream ostream) throws IOException(Code)(Java Doc) protected void copy(CacheEntry cacheEntry, InputStream is, PrintWriter writer) throws IOException(Code)(Java Doc) protected void copy(CacheEntry cacheEntry, ServletOutputStream ostream, Range range) throws IOException(Code)(Java Doc) protected void copy(CacheEntry cacheEntry, PrintWriter writer, Range range) throws IOException(Code)(Java Doc) protected void copy(CacheEntry cacheEntry, ServletOutputStream ostream, Iterator ranges, String contentType) throws IOException(Code)(Java Doc) protected void copy(CacheEntry cacheEntry, PrintWriter writer, Iterator ranges, String contentType) throws IOException(Code)(Java Doc) protected IOException copyRange(InputStream istream, ServletOutputStream ostream)(Code)(Java Doc) protected IOException copyRange(Reader reader, PrintWriter writer)(Code)(Java Doc) protected IOException copyRange(InputStream istream, ServletOutputStream ostream, long start, long end)(Code)(Java Doc) protected IOException copyRange(Reader reader, PrintWriter writer, long start, long end)(Code)(Java Doc) public void destroy()(Code)(Java Doc) protected void displaySize(StringBuffer buf, int filesize)(Code)(Java Doc) protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc) protected void doHead(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc) protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected File executePartialPut(HttpServletRequest req, Range range, String path) throws IOException(Code)(Java Doc) protected InputStream findXsltInputStream(DirContext directory) throws IOException, ServletException(Code)(Java Doc) protected String getETag(ResourceAttributes resourceAttributes)(Code)(Java Doc) protected String getReadme(DirContext directory) throws IOException, ServletException(Code)(Java Doc) protected String getRelativePath(HttpServletRequest request)(Code)(Java Doc) public void init() throws ServletException(Code)(Java Doc) protected Range parseContentRange(HttpServletRequest request, HttpServletResponse response) throws IOException(Code)(Java Doc) protected ArrayList parseRange(HttpServletRequest request, HttpServletResponse response, ResourceAttributes resourceAttributes) throws IOException(Code)(Java Doc) protected InputStream render(String contextPath, CacheEntry cacheEntry) throws IOException, ServletException(Code)(Java Doc) protected InputStream renderHtml(String contextPath, CacheEntry cacheEntry) throws IOException, ServletException(Code)(Java Doc) protected String renderSize(long size)(Code)(Java Doc) protected InputStream renderXml(String contextPath, CacheEntry cacheEntry, InputStream xsltInputStream) throws IOException, ServletException(Code)(Java Doc) protected String rewriteUrl(String path)(Code)(Java Doc) protected void serveResource(HttpServletRequest request, HttpServletResponse response, boolean content) throws IOException, ServletException(Code)(Java Doc)
|
|
|