This project has retired. For details please refer to its Attic page.
ArchivaDavResourceFactory

org.apache.maven.archiva.webdav
Class ArchivaDavResourceFactory

Package class diagram package ArchivaDavResourceFactory
java.lang.Object
  extended by org.apache.maven.archiva.webdav.ArchivaDavResourceFactory
All Implemented Interfaces:
org.apache.jackrabbit.webdav.DavResourceFactory, Auditable

public class ArchivaDavResourceFactory
extends java.lang.Object
implements org.apache.jackrabbit.webdav.DavResourceFactory, Auditable


Constructor Summary
ArchivaDavResourceFactory()
           
 
Method Summary
 void addAuditListener(AuditListener listener)
          Add an AuditListener.
protected  void applyServerSideRelocation(ManagedRepositoryContent managedRepository, org.apache.maven.archiva.model.ArtifactReference artifact)
          A relocation capable client will request the POM prior to the artifact, and will then read meta-data and do client side relocation.
 void clearAuditListeners()
          Remove all registered AuditListener objects.
 org.apache.jackrabbit.webdav.DavResource createResource(org.apache.jackrabbit.webdav.DavResourceLocator locator, org.apache.jackrabbit.webdav.DavServletRequest request, org.apache.jackrabbit.webdav.DavServletResponse response)
           
 org.apache.jackrabbit.webdav.DavResource createResource(org.apache.jackrabbit.webdav.DavResourceLocator locator, org.apache.jackrabbit.webdav.DavSession davSession)
           
protected  java.lang.String getActivePrincipal(org.apache.jackrabbit.webdav.DavServletRequest request)
           
 ArchivaAuditLogsDao getAuditLogsDao()
           
protected  boolean isAuthorized(org.apache.jackrabbit.webdav.DavServletRequest request, java.lang.String repositoryId)
           
 void removeAuditListener(AuditListener listener)
          Remove an AuditListener.
 void setArchivaConfiguration(ArchivaConfiguration archivaConfiguration)
           
 void setAuditLogsDao(ArchivaAuditLogsDao auditLogsDao)
           
 void setConnectors(RepositoryProxyConnectors connectors)
           
 void setHttpAuth(org.codehaus.redback.integration.filter.authentication.HttpAuthenticator httpAuth)
           
 void setRepositoryFactory(RepositoryContentFactory repositoryFactory)
           
 void setRepositoryRequest(RepositoryRequest repositoryRequest)
           
 void setScheduler(ArchivaTaskScheduler scheduler)
           
 void setServletAuth(ServletAuthenticator servletAuth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchivaDavResourceFactory

public ArchivaDavResourceFactory()
Method Detail

createResource

public org.apache.jackrabbit.webdav.DavResource createResource(org.apache.jackrabbit.webdav.DavResourceLocator locator,
                                                               org.apache.jackrabbit.webdav.DavServletRequest request,
                                                               org.apache.jackrabbit.webdav.DavServletResponse response)
                                                        throws org.apache.jackrabbit.webdav.DavException
Specified by:
createResource in interface org.apache.jackrabbit.webdav.DavResourceFactory
Throws:
org.apache.jackrabbit.webdav.DavException

createResource

public org.apache.jackrabbit.webdav.DavResource createResource(org.apache.jackrabbit.webdav.DavResourceLocator locator,
                                                               org.apache.jackrabbit.webdav.DavSession davSession)
                                                        throws org.apache.jackrabbit.webdav.DavException
Specified by:
createResource in interface org.apache.jackrabbit.webdav.DavResourceFactory
Throws:
org.apache.jackrabbit.webdav.DavException

applyServerSideRelocation

protected void applyServerSideRelocation(ManagedRepositoryContent managedRepository,
                                         org.apache.maven.archiva.model.ArtifactReference artifact)
                                  throws ProxyDownloadException
A relocation capable client will request the POM prior to the artifact, and will then read meta-data and do client side relocation. A simplier client (like maven 1) will only request the artifact and not use the metadatas.

For such clients, archiva does server-side relocation by reading itself the <relocation> element in metadatas and serving the expected artifact.

Throws:
ProxyDownloadException

addAuditListener

public void addAuditListener(AuditListener listener)
Description copied from interface: Auditable
Add an AuditListener.

Specified by:
addAuditListener in interface Auditable

clearAuditListeners

public void clearAuditListeners()
Description copied from interface: Auditable
Remove all registered AuditListener objects.

Specified by:
clearAuditListeners in interface Auditable

removeAuditListener

public void removeAuditListener(AuditListener listener)
Description copied from interface: Auditable
Remove an AuditListener.

Specified by:
removeAuditListener in interface Auditable

getAuditLogsDao

public ArchivaAuditLogsDao getAuditLogsDao()

isAuthorized

protected boolean isAuthorized(org.apache.jackrabbit.webdav.DavServletRequest request,
                               java.lang.String repositoryId)
                        throws org.apache.jackrabbit.webdav.DavException
Throws:
org.apache.jackrabbit.webdav.DavException

getActivePrincipal

protected java.lang.String getActivePrincipal(org.apache.jackrabbit.webdav.DavServletRequest request)

setServletAuth

public void setServletAuth(ServletAuthenticator servletAuth)

setHttpAuth

public void setHttpAuth(org.codehaus.redback.integration.filter.authentication.HttpAuthenticator httpAuth)

setScheduler

public void setScheduler(ArchivaTaskScheduler scheduler)

setArchivaConfiguration

public void setArchivaConfiguration(ArchivaConfiguration archivaConfiguration)

setRepositoryFactory

public void setRepositoryFactory(RepositoryContentFactory repositoryFactory)

setRepositoryRequest

public void setRepositoryRequest(RepositoryRequest repositoryRequest)

setConnectors

public void setConnectors(RepositoryProxyConnectors connectors)

setAuditLogsDao

public void setAuditLogsDao(ArchivaAuditLogsDao auditLogsDao)