Java Doc for DavServlet.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » dav » 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 » ERP CRM Financial » sakai » org.sakaiproject.dav 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.servlet.http.HttpServlet
   org.sakaiproject.dav.DavServlet

DavServlet
public class DavServlet extends HttpServlet (Code)
Servlet which adds support for WebDAV level 2. All the basic HTTP requests are handled by the DefaultServlet.

Inner Class :public class SakaidavServletInfo
Inner Class :public class DirContextSAKAI
Inner Class :public class ResourceInfoSAKAI

Field Summary
final protected static  StringDEFAULT_NAMESPACE
     Default namespace.
final static  StringFORM_VALUE_DELIMETER
    
final protected static  SimpleDateFormatHttpDateFormat
    
public static  StringME
    
final protected static  SimpleDateFormatcreationDateFormat
     Simple date format for the creation date ISO representation (partial).
protected  intdebug
     The debugging detail level for this servlet.
final protected static  SimpleDateFormatformats
     The set of SimpleDateFormat formats to use in getDateHeader().
final protected static  char[]hexadecimal
    
final protected static  MD5Encodermd5Encoder
     The MD5 helper object for this class.
protected static  MessageDigestmd5Helper
     MD5 message digest provider.
protected  booleanreadOnly
     Read only flag.
protected static  BitSetsafeCharacters
     Array containing the safe characters set.


Method Summary
protected  StringadjustId(String id)
     Adjust the id (a resource id) to map between any tricks we want to play and the real id for content hosting.
Parameters:
  id - the id to adjust.
protected  intcountSlashes(String s)
    
protected  voiddoCopy(HttpServletRequest req, HttpServletResponse resp)
     COPY Method.
protected  voiddoDelete(HttpServletRequest req, HttpServletResponse resp)
     DELETE Method.
protected  voiddoDispatch(SakaidavServletInfo info, HttpServletRequest req, HttpServletResponse resp)
    
protected  voiddoGet(HttpServletRequest req, HttpServletResponse resp)
     GET Method.
protected  voiddoHead(HttpServletRequest request, HttpServletResponse response)
     Process a HEAD request for the specified resource.
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  voiddoPost(HttpServletRequest req, HttpServletResponse resp)
     POST 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 PUT request for the specified resource.
protected  voiddoUnlock(HttpServletRequest req, HttpServletResponse resp)
     UNLOCK Method.
public  StringfixDirPathSAKAI(String path)
    
protected  DocumentBuildergetDocumentBuilder()
     Return JAXP document builder instance.
protected  StringgetRelativePath(HttpServletRequest request)
     Return the relative path associated with this servlet.
public  StringgetRelativePathSAKAI(HttpServletRequest req)
    
public  StringgetResourceNameSAKAI(Entity mbr)
     getResourceNameSAKAI - Needs to become a method of resource returns the internal name for a resource.
public  DirContextSAKAIgetResourcesSAKAI()
    
protected  StringgetUserPropertyDisplayName(ResourceProperties props, String name)
    
public  voidinit()
     Initialize this servlet.
protected  booleanisFileNameAllowed(HttpServletRequest req)
    
protected  StringjustName(String str)
    
public  voidlog(HttpServletRequest req, SakaidavServletInfo info)
    
public  SakaidavServletInfonewInfo(HttpServletRequest req)
    
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  booleanprohibited(String id)
    
protected  StringrewriteUrl(String path)
     URL rewriter.
protected  voidservice(HttpServletRequest req, HttpServletResponse res)
     Setup and cleanup around this request.
protected  voidshowRequestInfo(HttpServletRequest req)
     Show HTTP header information.

Field Detail
DEFAULT_NAMESPACE
final protected static String DEFAULT_NAMESPACE(Code)
Default namespace.



FORM_VALUE_DELIMETER
final static String FORM_VALUE_DELIMETER(Code)
delimiter for form multiple values



HttpDateFormat
final protected static SimpleDateFormat HttpDateFormat(Code)
Simple date format for the HTTP Date



ME
public static String ME(Code)
used to id a log message



creationDateFormat
final protected static SimpleDateFormat creationDateFormat(Code)
Simple date format for the creation date ISO representation (partial).



debug
protected int debug(Code)
The debugging detail level for this servlet.



formats
final protected static SimpleDateFormat formats(Code)
The set of SimpleDateFormat formats to use in getDateHeader().



hexadecimal
final protected static char[] hexadecimal(Code)



md5Encoder
final protected static MD5Encoder md5Encoder(Code)
The MD5 helper object for this class.



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



readOnly
protected boolean readOnly(Code)
Read only flag. By default, it's set to true.



safeCharacters
protected static BitSet safeCharacters(Code)
Array containing the safe characters set.





Method Detail
adjustId
protected String adjustId(String id)(Code)
Adjust the id (a resource id) to map between any tricks we want to play and the real id for content hosting.
Parameters:
  id - the id to adjust. the adjusted id.



countSlashes
protected int countSlashes(String s)(Code)



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.



doDispatch
protected void doDispatch(SakaidavServletInfo info, HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)
Handles the special Webdav methods



doGet
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)
GET Method.



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



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.



doPost
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)
POST Method.



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 PUT request for the specified resource.
Parameters:
  request - The servlet request we are processing
Parameters:
  response - 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.



fixDirPathSAKAI
public String fixDirPathSAKAI(String path)(Code)



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



getRelativePath
protected String getRelativePath(HttpServletRequest request)(Code)
Return the relative path associated with this servlet.
Parameters:
  request - The servlet request we are processing



getRelativePathSAKAI
public String getRelativePathSAKAI(HttpServletRequest req)(Code)



getResourceNameSAKAI
public String getResourceNameSAKAI(Entity mbr)(Code)
getResourceNameSAKAI - Needs to become a method of resource returns the internal name for a resource.



getResourcesSAKAI
public DirContextSAKAI getResourcesSAKAI()(Code)



getUserPropertyDisplayName
protected String getUserPropertyDisplayName(ResourceProperties props, String name)(Code)



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



isFileNameAllowed
protected boolean isFileNameAllowed(HttpServletRequest req)(Code)
Determine if this path is one of the prefixes that we have been requested to ignore by the properties settings
Parameters:
  request - The servlet request we are processing



justName
protected String justName(String str)(Code)



log
public void log(HttpServletRequest req, SakaidavServletInfo info)(Code)
log a request processed



newInfo
public SakaidavServletInfo newInfo(HttpServletRequest req)(Code)
create the info



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



prohibited
protected boolean prohibited(String id)(Code)



rewriteUrl
protected String rewriteUrl(String path)(Code)
URL rewriter.
Parameters:
  path - Path which has to be rewiten



service
protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, java.io.IOException(Code)
Setup and cleanup around this request.
Parameters:
  req - HttpServletRequest object with the client request
Parameters:
  res - HttpServletResponse object back to the client



showRequestInfo
protected void showRequestInfo(HttpServletRequest req)(Code)
Show HTTP header information.



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)

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