Class AbstractWebdavServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.jackrabbit.webdav.server.AbstractWebdavServlet
- All Implemented Interfaces:
Serializable,Servlet,ServletConfig,DavConstants
AbstractWebdavServlet
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault value for the 'WWW-Authenticate' header, that is set, if request results in a401 (Unauthorized)error.static final StringName of the optional init parameter that defines the value of the 'WWW-Authenticate' header.static final StringName of the 'createAbsoluteURI' init parameter that defines whether hrefs should be created with a absolute URI or as absolute Path (ContextPath).static final StringName of the parameter that specifies the configuration of the CSRF protection.static final Stringthe 'missing-auth-mapping' init parameterFields inherited from interface org.apache.jackrabbit.webdav.DavConstants
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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 toDEFAULT_AUTHENTICATE_HEADER.getContentCodings(HttpServletRequest request) Obtain the (ordered!) list of content codings that have been used in the requestabstract DavSessionProviderReturns theDavSessionProvider.abstract DavLocatorFactoryReturns theDavLocatorFactory.abstract DavResourceFactoryReturns theDavResourceFactory.voidinit()A convenience method which can be overridden so that there's no need to callsuper.init(config).abstract voidsetDavSessionProvider(DavSessionProvider davSessionProvider) Returns theDavSessionProvider.abstract voidsetLocatorFactory(DavLocatorFactory locatorFactory) Sets theDavLocatorFactory.abstract voidsetResourceFactory(DavResourceFactory resourceFactory) Sets theDavResourceFactory.Methods inherited from class javax.servlet.http.HttpServlet
serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
INIT_PARAM_MISSING_AUTH_MAPPING
the 'missing-auth-mapping' init parameter- See Also:
-
INIT_PARAM_AUTHENTICATE_HEADER
Name of the optional init parameter that defines the value of the 'WWW-Authenticate' header.If the parameter is omitted the default value
"Basic Realm=Jackrabbit Webdav Server"is used.- See Also:
-
DEFAULT_AUTHENTICATE_HEADER
Default value for the 'WWW-Authenticate' header, that is set, if request results in a401 (Unauthorized)error.- See Also:
-
INIT_PARAM_CSRF_PROTECTION
Name of the parameter that specifies the configuration of the CSRF protection. May contain a comma-separated list of allowed referrer hosts. If the parameter is omitted or left empty the behaviour is to only allow requests which have an empty referrer or a referrer host equal to the server host. If the parameter is set to 'disabled' no referrer checks will be performed at all.- See Also:
-
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). The value should be 'true' or 'false'. The default value if not set is true.- See Also:
-
-
Constructor Details
-
AbstractWebdavServlet
public AbstractWebdavServlet()
-
-
Method Details
-
init
Description copied from class:GenericServletA convenience method which can be overridden so that there's no need to callsuper.init(config).Instead of overriding
GenericServlet.init(ServletConfig), simply override this method and it will be called byGenericServlet.init(ServletConfig config). TheServletConfigobject can still be retrieved viaGenericServlet.getServletConfig().- Overrides:
initin classGenericServlet- Throws:
ServletException- if an exception occurs that interrupts the servlet's normal operation
-
getDavSessionProvider
Returns theDavSessionProvider.- Returns:
- the session provider
-
setDavSessionProvider
Returns theDavSessionProvider.- Parameters:
davSessionProvider-
-
getLocatorFactory
Returns theDavLocatorFactory.- Returns:
- the locator factory
-
setLocatorFactory
Sets theDavLocatorFactory.- Parameters:
locatorFactory-
-
getResourceFactory
Returns theDavResourceFactory.- Returns:
- the resource factory
-
setResourceFactory
Sets theDavResourceFactory.- Parameters:
resourceFactory-
-
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 toDEFAULT_AUTHENTICATE_HEADER.- Returns:
- corresponding init parameter or
DEFAULT_AUTHENTICATE_HEADER. - See Also:
-
getContentCodings
Obtain the (ordered!) list of content codings that have been used in the request
-