Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.slide.webdav
Class WebdavServlet  view WebdavServlet download WebdavServlet.java

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.apache.slide.webdav.WebdavServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class WebdavServlet
extends javax.servlet.http.HttpServlet

The WebDAV servlet. It is responsible for dispatching incoming requests to implementations of the WebdavMethod interface.

Version:
$Revision: 1.63.2.1 $

Field Summary
static java.lang.String ATTRIBUTE_NAME
          Name under which the namespace access token is stored in the application attributes.
protected  boolean directoryBrowsing
          Directory browsing enabled.
protected  javax.servlet.RequestDispatcher directoryBrowsingTemplate
          RequestDispatcher to the directory browsing template, if specified.
protected  org.apache.slide.webdav.util.DirectoryIndexGenerator directoryIndexGenerator
          Directory browsing enabled.
protected  boolean handleLifecycle
          Set to true if the servlet is handling the lifecycle of the domain.
private static java.lang.String LOG_CHANNEL
          Name of the log channel used by the WebDAV servlet.
protected  WebdavMethodFactory methodFactory
          Instance of the WebdavMethodFactory to use by this servlet.
protected  org.apache.slide.common.NamespaceAccessToken token
          Access token to the namespace.
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
WebdavServlet()
           
 
Method Summary
 void destroy()
          Destroy servlet.
 void init()
          Manages some initialization stuff on the server.
 void init(javax.servlet.ServletConfig config)
          Implemented to wrap the ServletConfig object inside a WebdavServletConfig
private  boolean isCollection(javax.servlet.http.HttpServletRequest req)
           
(package private) static boolean isDomLevel2Parser()
          Handle a GET request on a collection resource.
private  boolean isExtTx(javax.servlet.http.HttpServletRequest req)
           
protected  void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          Receives standard HTTP requests from the public service method and dispatches them to the doXXX methods defined in this class.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_CHANNEL

private static final java.lang.String LOG_CHANNEL
Name of the log channel used by the WebDAV servlet.


ATTRIBUTE_NAME

public static final java.lang.String ATTRIBUTE_NAME
Name under which the namespace access token is stored in the application attributes. This is used when the WebDAV servlet doesn't initialize Slide itself, but rather the initialization is done outside.

See Also:
Constant Field Values

token

protected org.apache.slide.common.NamespaceAccessToken token
Access token to the namespace.


directoryBrowsing

protected boolean directoryBrowsing
Directory browsing enabled.


directoryBrowsingTemplate

protected javax.servlet.RequestDispatcher directoryBrowsingTemplate
RequestDispatcher to the directory browsing template, if specified.


directoryIndexGenerator

protected org.apache.slide.webdav.util.DirectoryIndexGenerator directoryIndexGenerator
Directory browsing enabled.


handleLifecycle

protected boolean handleLifecycle
Set to true if the servlet is handling the lifecycle of the domain.


methodFactory

protected WebdavMethodFactory methodFactory
Instance of the WebdavMethodFactory to use by this servlet.

Constructor Detail

WebdavServlet

public WebdavServlet()
Method Detail

service

protected void service(javax.servlet.http.HttpServletRequest req,
                       javax.servlet.http.HttpServletResponse resp)
                throws javax.servlet.ServletException,
                       java.io.IOException
Description copied from class: javax.servlet.http.HttpServlet
Receives standard HTTP requests from the public service method and dispatches them to the doXXX methods defined in this class. This method is an HTTP-specific version of the Servlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)>Servlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) 55 method. There's no need to override this method.


isExtTx

private boolean isExtTx(javax.servlet.http.HttpServletRequest req)

isCollection

private boolean isCollection(javax.servlet.http.HttpServletRequest req)

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Implemented to wrap the ServletConfig object inside a WebdavServletConfig


init

public void init()
          throws javax.servlet.ServletException
Manages some initialization stuff on the server.


destroy

public void destroy()
Destroy servlet.


isDomLevel2Parser

static boolean isDomLevel2Parser()
Handle a GET request on a collection resource.