|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.jackrabbit.webdav.server.AbstractWebdavServlet
org.apache.jackrabbit.webdav.jcr.JCRWebdavServerServlet
public abstract class JCRWebdavServerServlet
JCRWebdavServerServlet provides request/response handling for the JCRWebdavServer.
Implementations of this abstract class must implement the
getRepository() method to access the repository.
| Field Summary | |
|---|---|
static String |
CTX_ATTR_RESOURCE_PATH_PREFIX
Servlet context attribute used to store the path prefix instead of having a static field with this servlet. |
static String |
INIT_PARAM_AUTHENTICATE_HEADER
Name of the optional init parameter that defines the value of the 'WWW-Authenticate' header. |
static String |
INIT_PARAM_MISSING_AUTH_MAPPING
the 'missing-auth-mapping' init parameter |
static String |
INIT_PARAM_RESOURCE_PATH_PREFIX
Init parameter specifying the prefix used with the resource path. |
protected SubscriptionManager |
subscriptionMgr
|
protected TxLockManagerImpl |
txMgr
|
| Fields inherited from class org.apache.jackrabbit.webdav.server.AbstractWebdavServlet |
|---|
DEFAULT_AUTHENTICATE_HEADER |
| Constructor Summary | |
|---|---|
JCRWebdavServerServlet()
|
|
| Method Summary | |
|---|---|
String |
getAuthenticateHeaderValue()
Returns the init param of the servlet configuration or AbstractWebdavServlet.DEFAULT_AUTHENTICATE_HEADER as default value. |
DavSessionProvider |
getDavSessionProvider()
Returns the DavSessionProvider |
DavLocatorFactory |
getLocatorFactory()
Returns the DavLocatorFactory |
static String |
getPathPrefix(javax.servlet.ServletContext ctx)
Returns the configured path prefix |
protected abstract javax.jcr.Repository |
getRepository()
Returns the repository to be used by this servlet. |
DavResourceFactory |
getResourceFactory()
Returns the DavResourceFactory. |
void |
init()
Initializes the servlet set reads the following parameter from the servlet configuration: resource-path-prefix: optional prefix for all resources. |
protected boolean |
isPreconditionValid(WebdavRequest request,
DavResource resource)
Returns true if the preconditions are met. |
void |
setDavSessionProvider(DavSessionProvider davSessionProvider)
Throws UnsupportedOperationException. |
void |
setLocatorFactory(DavLocatorFactory locatorFactory)
Sets the DavLocatorFactory |
void |
setResourceFactory(DavResourceFactory resourceFactory)
Sets the DavResourceFactory. |
| Methods inherited from class org.apache.jackrabbit.webdav.server.AbstractWebdavServlet |
|---|
doAcl, doBaselineControl, doBind, doCopy, doDelete, doGet, doHead, doCheckin, doCheckout, doLabel, doLock, doMerge, doMkActivity, doMkCol, doMkWorkspace, doMove, doOptions, doOrderPatch, doPoll, doPost, doPropFind, doPropPatch, doPut, doRebind, doReport, doSearch, doSubscribe, doUnbind, doUncheckout, doUnlock, doUnsubscribe, doUpdate, doVersionControl, execute, getInputContext, getOutputContext, service |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String INIT_PARAM_RESOURCE_PATH_PREFIX
public static final String INIT_PARAM_AUTHENTICATE_HEADER
"Basic Realm=Jackrabbit Webdav Server"
is used.
getAuthenticateHeaderValue(),
Constant Field Valuespublic static final String INIT_PARAM_MISSING_AUTH_MAPPING
public static final String CTX_ATTR_RESOURCE_PATH_PREFIX
protected TxLockManagerImpl txMgr
protected SubscriptionManager subscriptionMgr
| Constructor Detail |
|---|
public JCRWebdavServerServlet()
| Method Detail |
|---|
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletException
protected boolean isPreconditionValid(WebdavRequest request,
DavResource resource)
If header and validation
of TransactionId header. This method will also return false if the requested
resource resides within a differenct workspace as is assigned to the repository
session attached to the given request.
isPreconditionValid in class AbstractWebdavServletAbstractWebdavServlet.isPreconditionValid(WebdavRequest, DavResource)public DavSessionProvider getDavSessionProvider()
DavSessionProvider
getDavSessionProvider in class AbstractWebdavServletAbstractWebdavServlet.getDavSessionProvider()public void setDavSessionProvider(DavSessionProvider davSessionProvider)
UnsupportedOperationException.
setDavSessionProvider in class AbstractWebdavServletAbstractWebdavServlet.setDavSessionProvider(DavSessionProvider)public DavLocatorFactory getLocatorFactory()
DavLocatorFactory
getLocatorFactory in class AbstractWebdavServletAbstractWebdavServlet.getLocatorFactory()public void setLocatorFactory(DavLocatorFactory locatorFactory)
DavLocatorFactory
setLocatorFactory in class AbstractWebdavServletAbstractWebdavServlet.setLocatorFactory(DavLocatorFactory)public DavResourceFactory getResourceFactory()
DavResourceFactory.
getResourceFactory in class AbstractWebdavServletAbstractWebdavServlet.getResourceFactory()public void setResourceFactory(DavResourceFactory resourceFactory)
DavResourceFactory.
setResourceFactory in class AbstractWebdavServletAbstractWebdavServlet.setResourceFactory(org.apache.jackrabbit.webdav.DavResourceFactory)public String getAuthenticateHeaderValue()
AbstractWebdavServlet.DEFAULT_AUTHENTICATE_HEADER as default value.
getAuthenticateHeaderValue in class AbstractWebdavServletAbstractWebdavServlet.DEFAULT_AUTHENTICATE_HEADER.INIT_PARAM_AUTHENTICATE_HEADERpublic static String getPathPrefix(javax.servlet.ServletContext ctx)
INIT_PARAM_RESOURCE_PATH_PREFIXprotected abstract javax.jcr.Repository getRepository()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||