public class RepositoryServlet extends org.apache.jackrabbit.webdav.server.AbstractWebdavServlet implements ConfigurationListener
Modifier and Type | Field and Description |
---|---|
private ArchivaConfiguration |
configuration |
private org.apache.jackrabbit.webdav.DavLocatorFactory |
locatorFactory |
private org.slf4j.Logger |
log |
private ManagedRepositoryAdmin |
managedRepositoryAdmin |
private Object |
reloadLock |
private Map<String,ManagedRepository> |
repositoryMap |
private org.apache.jackrabbit.webdav.DavResourceFactory |
resourceFactory |
private org.apache.jackrabbit.webdav.DavSessionProvider |
sessionProvider |
DEFAULT_AUTHENTICATE_HEADER, INIT_PARAM_AUTHENTICATE_HEADER, INIT_PARAM_CREATE_ABSOLUTE_URI, INIT_PARAM_CSRF_PROTECTION, INIT_PARAM_MISSING_AUTH_MAPPING
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 |
---|
RepositoryServlet() |
Modifier and Type | Method and Description |
---|---|
void |
configurationEvent(ConfigurationEvent event)
Generic event point to notify components that something has happend in the configuration.
|
void |
destroy() |
String |
getAuthenticateHeaderValue() |
String |
getAuthenticateHeaderValue(String repository) |
(package private) ArchivaConfiguration |
getConfiguration() |
org.apache.jackrabbit.webdav.DavSessionProvider |
getDavSessionProvider() |
org.apache.jackrabbit.webdav.DavLocatorFactory |
getLocatorFactory() |
ManagedRepository |
getRepository(String prefix) |
org.apache.jackrabbit.webdav.DavResourceFactory |
getResourceFactory() |
void |
init(javax.servlet.ServletConfig servletConfig) |
private void |
initRepositories() |
void |
initServers(javax.servlet.ServletConfig servletConfig) |
protected boolean |
isPreconditionValid(org.apache.jackrabbit.webdav.WebdavRequest request,
org.apache.jackrabbit.webdav.DavResource davResource) |
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Service the given request.
|
void |
setDavSessionProvider(org.apache.jackrabbit.webdav.DavSessionProvider davSessionProvider) |
void |
setLocatorFactory(org.apache.jackrabbit.webdav.DavLocatorFactory davLocatorFactory) |
void |
setResourceFactory(org.apache.jackrabbit.webdav.DavResourceFactory davResourceFactory) |
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, init, isCreateAbsoluteURI, sendUnauthorized, validateDestination
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
private org.slf4j.Logger log
private ArchivaConfiguration configuration
private ManagedRepositoryAdmin managedRepositoryAdmin
private Map<String,ManagedRepository> repositoryMap
private org.apache.jackrabbit.webdav.DavLocatorFactory locatorFactory
private org.apache.jackrabbit.webdav.DavResourceFactory resourceFactory
private org.apache.jackrabbit.webdav.DavSessionProvider sessionProvider
private final Object reloadLock
public RepositoryServlet()
public void init(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
service
in class org.apache.jackrabbit.webdav.server.AbstractWebdavServlet
request
- response
- javax.servlet.ServletException
IOException
public void initServers(javax.servlet.ServletConfig servletConfig) throws RepositoryAdminException
RepositoryAdminException
public void configurationEvent(ConfigurationEvent event)
ConfigurationListener
configurationEvent
in interface ConfigurationListener
private void initRepositories() throws RepositoryAdminException
RepositoryAdminException
public ManagedRepository getRepository(String prefix) throws RepositoryAdminException
RepositoryAdminException
ArchivaConfiguration getConfiguration()
protected boolean isPreconditionValid(org.apache.jackrabbit.webdav.WebdavRequest request, org.apache.jackrabbit.webdav.DavResource davResource)
isPreconditionValid
in class org.apache.jackrabbit.webdav.server.AbstractWebdavServlet
public org.apache.jackrabbit.webdav.DavSessionProvider getDavSessionProvider()
getDavSessionProvider
in class org.apache.jackrabbit.webdav.server.AbstractWebdavServlet
public void setDavSessionProvider(org.apache.jackrabbit.webdav.DavSessionProvider davSessionProvider)
setDavSessionProvider
in class org.apache.jackrabbit.webdav.server.AbstractWebdavServlet
public org.apache.jackrabbit.webdav.DavLocatorFactory getLocatorFactory()
getLocatorFactory
in class org.apache.jackrabbit.webdav.server.AbstractWebdavServlet
public void setLocatorFactory(org.apache.jackrabbit.webdav.DavLocatorFactory davLocatorFactory)
setLocatorFactory
in class org.apache.jackrabbit.webdav.server.AbstractWebdavServlet
public org.apache.jackrabbit.webdav.DavResourceFactory getResourceFactory()
getResourceFactory
in class org.apache.jackrabbit.webdav.server.AbstractWebdavServlet
public void setResourceFactory(org.apache.jackrabbit.webdav.DavResourceFactory davResourceFactory)
setResourceFactory
in class org.apache.jackrabbit.webdav.server.AbstractWebdavServlet
public String getAuthenticateHeaderValue()
getAuthenticateHeaderValue
in class org.apache.jackrabbit.webdav.server.AbstractWebdavServlet
public String getAuthenticateHeaderValue(String repository)
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.