| 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 | |
Method Summary | |
protected String | adjustId(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 int | countSlashes(String s) | protected void | doCopy(HttpServletRequest req, HttpServletResponse resp) COPY Method. | protected void | doDelete(HttpServletRequest req, HttpServletResponse resp) DELETE Method. | protected void | doDispatch(SakaidavServletInfo info, HttpServletRequest req, HttpServletResponse resp) | protected void | doGet(HttpServletRequest req, HttpServletResponse resp) GET Method. | protected void | doHead(HttpServletRequest request, HttpServletResponse response) Process a HEAD request for the specified resource. | 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 | doPost(HttpServletRequest req, HttpServletResponse resp) POST 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 PUT request for the specified resource. | protected void | doUnlock(HttpServletRequest req, HttpServletResponse resp) UNLOCK Method. | public String | fixDirPathSAKAI(String path) | protected DocumentBuilder | getDocumentBuilder() Return JAXP document builder instance. | protected String | getRelativePath(HttpServletRequest request) Return the relative path associated with this servlet. | public String | getRelativePathSAKAI(HttpServletRequest req) | public String | getResourceNameSAKAI(Entity mbr) getResourceNameSAKAI - Needs to become a method of resource returns the internal name for a resource. | public DirContextSAKAI | getResourcesSAKAI() | protected String | getUserPropertyDisplayName(ResourceProperties props, String name) | public void | init() Initialize this servlet. | protected boolean | isFileNameAllowed(HttpServletRequest req) | protected String | justName(String str) | public void | log(HttpServletRequest req, SakaidavServletInfo info) | public SakaidavServletInfo | newInfo(HttpServletRequest req) | 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 boolean | prohibited(String id) | protected String | rewriteUrl(String path) URL rewriter. | protected void | service(HttpServletRequest req, HttpServletResponse res) Setup and cleanup around this request. | protected void | showRequestInfo(HttpServletRequest req) Show HTTP header information. |
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
|
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.
|
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.
|
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. |
getRelativePath | protected String getRelativePath(HttpServletRequest request)(Code) | | Return the relative path associated with this servlet.
Parameters: request - The servlet request we are processing |
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) | | |
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 |
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 |
rewriteUrl | protected String rewriteUrl(String path)(Code) | | URL rewriter.
Parameters: path - Path which has to be rewiten |
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)
|
|
|