public abstract class AbstractWebdavServlet extends HttpServlet implements DavConstants
AbstractWebdavServlet
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_AUTHENTICATE_HEADER
Default value for the 'WWW-Authenticate' header, that is set, if request
results in a
401 (Unauthorized)
error. |
static java.lang.String |
INIT_PARAM_AUTHENTICATE_HEADER
Name of the optional init parameter that defines the value of the
'WWW-Authenticate' header.
|
static java.lang.String |
INIT_PARAM_CREATE_ABSOLUTE_URI
Name of the 'createAbsoluteURI' init parameter that defines whether hrefs
should be created with a absolute URI or as absolute Path (ContextPath).
|
static java.lang.String |
INIT_PARAM_CSRF_PROTECTION
Name of the parameter that specifies the configuration of the CSRF protection.
|
static java.lang.String |
INIT_PARAM_MISSING_AUTH_MAPPING
the 'missing-auth-mapping' init parameter
|
creationDateFormat, DEPTH_0, DEPTH_1, DEPTH_INFINITY, DEPTH_INFINITY_S, HEADER_AUTHORIZATION, HEADER_CONTENT_LANGUAGE, HEADER_CONTENT_LENGTH, HEADER_CONTENT_TYPE, HEADER_DAV, HEADER_DEPTH, HEADER_DESTINATION, HEADER_ETAG, HEADER_IF, HEADER_LAST_MODIFIED, HEADER_LOCK_TOKEN, HEADER_OVERWRITE, HEADER_TIMEOUT, INFINITE_TIMEOUT, modificationDateFormat, NAMESPACE, OPAQUE_LOCK_TOKEN_PREFIX, PROPERTY_CREATIONDATE, PROPERTY_DISPLAYNAME, PROPERTY_GETCONTENTLANGUAGE, PROPERTY_GETCONTENTLENGTH, PROPERTY_GETCONTENTTYPE, PROPERTY_GETETAG, PROPERTY_GETLASTMODIFIED, PROPERTY_LOCKDISCOVERY, PROPERTY_RESOURCETYPE, PROPERTY_SOURCE, PROPERTY_SUPPORTEDLOCK, PROPFIND_ALL_PROP, PROPFIND_ALL_PROP_INCLUDE, PROPFIND_BY_PROPERTY, PROPFIND_PROPERTY_NAMES, TIMEOUT_INFINITE, UNDEFINED_TIME, UNDEFINED_TIMEOUT, XML_ACTIVELOCK, XML_ALLPROP, XML_COLLECTION, XML_DEPTH, XML_DST, XML_EXCLUSIVE, XML_HREF, XML_INCLUDE, XML_KEEPALIVE, XML_LINK, XML_LOCKENTRY, XML_LOCKINFO, XML_LOCKROOT, XML_LOCKSCOPE, XML_LOCKTOKEN, XML_LOCKTYPE, XML_MULTISTATUS, XML_OMIT, XML_OWNER, XML_PROP, XML_PROPERTYBEHAVIOR, XML_PROPERTYUPDATE, XML_PROPFIND, XML_PROPNAME, XML_PROPSTAT, XML_REMOVE, XML_RESPONSE, XML_RESPONSEDESCRIPTION, XML_SET, XML_SHARED, XML_SOURCE, XML_STATUS, XML_TIMEOUT, XML_WRITE
Constructor and Description |
---|
AbstractWebdavServlet() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthenticateHeaderValue()
Returns the value of the 'WWW-Authenticate' header, that is returned in
case of 401 error: the value is retrireved from the corresponding init
param or defaults to
DEFAULT_AUTHENTICATE_HEADER . |
abstract DavSessionProvider |
getDavSessionProvider()
Returns the
DavSessionProvider . |
abstract DavLocatorFactory |
getLocatorFactory()
Returns the
DavLocatorFactory . |
abstract DavResourceFactory |
getResourceFactory()
Returns the
DavResourceFactory . |
void |
init() |
abstract void |
setDavSessionProvider(DavSessionProvider davSessionProvider)
Returns the
DavSessionProvider . |
abstract void |
setLocatorFactory(DavLocatorFactory locatorFactory)
Sets the
DavLocatorFactory . |
abstract void |
setResourceFactory(DavResourceFactory resourceFactory)
Sets the
DavResourceFactory . |
service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
public static final java.lang.String INIT_PARAM_MISSING_AUTH_MAPPING
public static final java.lang.String INIT_PARAM_AUTHENTICATE_HEADER
If the parameter is omitted the default value
"Basic Realm=Jackrabbit Webdav Server"
is used.
public static final java.lang.String DEFAULT_AUTHENTICATE_HEADER
401 (Unauthorized)
error.public static final java.lang.String INIT_PARAM_CSRF_PROTECTION
public static final java.lang.String INIT_PARAM_CREATE_ABSOLUTE_URI
public void init() throws ServletException
init
in class GenericServlet
ServletException
public abstract DavSessionProvider getDavSessionProvider()
DavSessionProvider
.public abstract void setDavSessionProvider(DavSessionProvider davSessionProvider)
DavSessionProvider
.davSessionProvider
- public abstract DavLocatorFactory getLocatorFactory()
DavLocatorFactory
.public abstract void setLocatorFactory(DavLocatorFactory locatorFactory)
DavLocatorFactory
.locatorFactory
- public abstract DavResourceFactory getResourceFactory()
DavResourceFactory
.public abstract void setResourceFactory(DavResourceFactory resourceFactory)
DavResourceFactory
.resourceFactory
- public java.lang.String getAuthenticateHeaderValue()
DEFAULT_AUTHENTICATE_HEADER
.DEFAULT_AUTHENTICATE_HEADER
.INIT_PARAM_AUTHENTICATE_HEADER
Copyright © 2010 - 2020 Adobe. All Rights Reserved