|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.apache.jackrabbit.webdav.server.AbstractWebdavServlet org.apache.jackrabbit.webdav.simple.SimpleWebdavServlet
public abstract class SimpleWebdavServlet
WebdavServlet provides webdav support (level 1 and 2 complient) for repository resources.
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_CONFIG
Name of the init parameter that specify a separate configuration used for filtering the resources displayed. |
static String |
INIT_PARAM_RESOURCE_PATH_PREFIX
init param name of the repository prefix |
Fields inherited from class org.apache.jackrabbit.webdav.server.AbstractWebdavServlet |
---|
DEFAULT_AUTHENTICATE_HEADER |
Constructor Summary | |
---|---|
SimpleWebdavServlet()
|
Method Summary | |
---|---|
String |
getAuthenticateHeaderValue()
Returns the header value retrieved from the INIT_PARAM_AUTHENTICATE_HEADER
init parameter. |
protected CredentialsProvider |
getCredentialsProvider()
Factory method for creating the credentials provider to be used for accessing the credentials associated with a request. |
DavSessionProvider |
getDavSessionProvider()
Returns the DavSessionProvider . |
DavLocatorFactory |
getLocatorFactory()
Returns the DavLocatorFactory . |
LockManager |
getLockManager()
Returns the LockManager . |
String |
getPathPrefix()
Returns the configured path prefix |
static String |
getPathPrefix(javax.servlet.ServletContext ctx)
Returns the configured path prefix |
abstract Repository |
getRepository()
Returns the Repository . |
ResourceConfig |
getResourceConfig()
Returns the resource configuration to be applied |
DavResourceFactory |
getResourceFactory()
Returns the DavResourceFactory . |
SessionProvider |
getSessionProvider()
Returns the SessionProvider . |
void |
init()
Init this servlet |
protected boolean |
isPreconditionValid(WebdavRequest request,
DavResource resource)
Checks if the precondition for this request and resource is valid. |
void |
setDavSessionProvider(DavSessionProvider sessionProvider)
Sets the DavSessionProvider . |
void |
setLocatorFactory(DavLocatorFactory locatorFactory)
Sets the DavLocatorFactory . |
void |
setLockManager(LockManager lockManager)
Sets the LockManager . |
void |
setResourceConfig(ResourceConfig config)
Set the resource configuration |
void |
setResourceFactory(DavResourceFactory resourceFactory)
Sets the DavResourceFactory . |
void |
setSessionProvider(SessionProvider sessionProvider)
Sets the SessionProvider . |
Methods inherited from class org.apache.jackrabbit.webdav.server.AbstractWebdavServlet |
---|
doAcl, doBaselineControl, doBind, doCheckin, doCheckout, doCopy, doDelete, doGet, doHead, 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 INIT_PARAM_RESOURCE_CONFIG
public static final String CTX_ATTR_RESOURCE_PATH_PREFIX
Constructor Detail |
---|
public SimpleWebdavServlet()
Method Detail |
---|
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected boolean isPreconditionValid(WebdavRequest request, DavResource resource)
isPreconditionValid
in class AbstractWebdavServlet
public String getPathPrefix()
INIT_PARAM_RESOURCE_PATH_PREFIX
public static String getPathPrefix(javax.servlet.ServletContext ctx)
INIT_PARAM_RESOURCE_PATH_PREFIX
public DavLocatorFactory getLocatorFactory()
DavLocatorFactory
. If no locator factory has
been set or created a new instance of LocatorFactoryImpl
is
returned.
getLocatorFactory
in class AbstractWebdavServlet
AbstractWebdavServlet.getLocatorFactory()
public void setLocatorFactory(DavLocatorFactory locatorFactory)
DavLocatorFactory
.
setLocatorFactory
in class AbstractWebdavServlet
locatorFactory
- AbstractWebdavServlet.setLocatorFactory(DavLocatorFactory)
public LockManager getLockManager()
LockManager
. If no lock manager has
been set or created a new instance of SimpleLockManager
is
returned.
public void setLockManager(LockManager lockManager)
LockManager
.
lockManager
- public DavResourceFactory getResourceFactory()
DavResourceFactory
. If no request factory has
been set or created a new instance of ResourceFactoryImpl
is
returned.
getResourceFactory
in class AbstractWebdavServlet
AbstractWebdavServlet.getResourceFactory()
public void setResourceFactory(DavResourceFactory resourceFactory)
DavResourceFactory
.
setResourceFactory
in class AbstractWebdavServlet
resourceFactory
- AbstractWebdavServlet.setResourceFactory(org.apache.jackrabbit.webdav.DavResourceFactory)
public SessionProvider getSessionProvider()
SessionProvider
. If no session provider has been
set or created a new instance of SessionProviderImpl
that extracts
credentials from the request's Authorization
header is
returned.
protected CredentialsProvider getCredentialsProvider()
BasicCredentialsProvider
instance,
but subclasses can override this method to add support for other
types of credentials.
public void setSessionProvider(SessionProvider sessionProvider)
SessionProvider
.
sessionProvider
- public DavSessionProvider getDavSessionProvider()
DavSessionProvider
. If no session provider has
been set or created a new instance of DavSessionProviderImpl
is returned.
getDavSessionProvider
in class AbstractWebdavServlet
AbstractWebdavServlet.getDavSessionProvider()
public void setDavSessionProvider(DavSessionProvider sessionProvider)
DavSessionProvider
.
setDavSessionProvider
in class AbstractWebdavServlet
sessionProvider
- AbstractWebdavServlet.setDavSessionProvider(org.apache.jackrabbit.webdav.DavSessionProvider)
public String getAuthenticateHeaderValue()
INIT_PARAM_AUTHENTICATE_HEADER
init parameter. If the parameter is missing, the value defaults to
AbstractWebdavServlet.DEFAULT_AUTHENTICATE_HEADER
.
getAuthenticateHeaderValue
in class AbstractWebdavServlet
AbstractWebdavServlet.DEFAULT_AUTHENTICATE_HEADER
.AbstractWebdavServlet.getAuthenticateHeaderValue()
public ResourceConfig getResourceConfig()
public void setResourceConfig(ResourceConfig config)
config
- public abstract Repository getRepository()
Repository
. If no repository has been set or
created the repository initialized by RepositoryAccessServlet
is returned.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |