Java Doc for WebdavServlet.java in  » Sevlet-Container » apache-tomcat-6.0.14 » org » apache » catalina » servlets » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Sevlet Container » apache tomcat 6.0.14 » org.apache.catalina.servlets 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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) $


Field Summary
final protected static  StringDEFAULT_NAMESPACE
     Default namespace.
final protected static  SimpleDateFormatcreationDateFormat
     Simple date format for the creation date ISO representation (partial).
final protected static  MD5Encodermd5Encoder
     The MD5 helper object for this class.
protected static  MessageDigestmd5Helper
     MD5 message digest provider.


Method Summary
protected  booleancheckIfHeaders(HttpServletRequest request, HttpServletResponse response, ResourceAttributes resourceAttributes)
     Check if the conditions specified in the optional If headers are satisfied.
protected  voiddoCopy(HttpServletRequest req, HttpServletResponse resp)
     COPY Method.
protected  voiddoDelete(HttpServletRequest req, HttpServletResponse resp)
     DELETE Method.
protected  voiddoLock(HttpServletRequest req, HttpServletResponse resp)
     LOCK Method.
protected  voiddoMkcol(HttpServletRequest req, HttpServletResponse resp)
     MKCOL Method.
protected  voiddoMove(HttpServletRequest req, HttpServletResponse resp)
     MOVE Method.
protected  voiddoOptions(HttpServletRequest req, HttpServletResponse resp)
     OPTIONS Method.
protected  voiddoPropfind(HttpServletRequest req, HttpServletResponse resp)
     PROPFIND Method.
protected  voiddoProppatch(HttpServletRequest req, HttpServletResponse resp)
     PROPPATCH Method.
protected  voiddoPut(HttpServletRequest req, HttpServletResponse resp)
     Process a POST request for the specified resource.
protected  voiddoUnlock(HttpServletRequest req, HttpServletResponse resp)
     UNLOCK Method.
protected  DocumentBuildergetDocumentBuilder()
     Return JAXP document builder instance.
public  voidinit()
     Initialize this servlet.
protected  Stringnormalize(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  voidservice(HttpServletRequest req, HttpServletResponse resp)
     Handles the special WebDAV methods.

Field Detail
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.



md5Helper
protected static MessageDigest md5Helper(Code)
MD5 message digest provider.





Method Detail
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



doCopy
protected void doCopy(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)
COPY Method.



doDelete
protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)
DELETE Method.



doLock
protected void doLock(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)
LOCK Method.



doMkcol
protected void doMkcol(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)
MKCOL Method.



doMove
protected void doMove(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)
MOVE Method.



doOptions
protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)
OPTIONS Method.
Parameters:
  req - The request
Parameters:
  resp - The response
throws:
  ServletException - If an error occurs
throws:
  IOException - If an IO error occurs



doPropfind
protected void doPropfind(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)
PROPFIND Method.



doProppatch
protected void doProppatch(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)
PROPPATCH Method.



doPut
protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)
Process a POST request for the specified resource.
Parameters:
  req - The servlet request we are processing
Parameters:
  resp - The servlet response we are creating
exception:
  IOException - if an input/output error occurs
exception:
  ServletException - if a servlet-specified error occurs



doUnlock
protected void doUnlock(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)
UNLOCK Method.



getDocumentBuilder
protected DocumentBuilder getDocumentBuilder() throws ServletException(Code)
Return JAXP document builder instance.



init
public void init() throws ServletException(Code)
Initialize this servlet.



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



service
protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)
Handles the special WebDAV methods.



Fields inherited from org.apache.catalina.servlets.DefaultServlet
final protected static int BUFFER_SIZE(Code)(Java Doc)
protected static ArrayList FULL(Code)(Java Doc)
final protected static String RESOURCES_JNDI_NAME(Code)(Java Doc)
protected int debug(Code)(Java Doc)
protected String fileEncoding(Code)(Java Doc)
protected String globalXsltFile(Code)(Java Doc)
protected int input(Code)(Java Doc)
protected boolean listings(Code)(Java Doc)
protected String localXsltFile(Code)(Java Doc)
final protected static String mimeSeparation(Code)(Java Doc)
protected int output(Code)(Java Doc)
protected boolean readOnly(Code)(Java Doc)
protected String readmeFile(Code)(Java Doc)
protected ProxyDirContext resources(Code)(Java Doc)
protected int sendfileSize(Code)(Java Doc)
protected static StringManager sm(Code)(Java Doc)
protected static URLEncoder urlEncoder(Code)(Java Doc)

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)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.