• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java DavResourceFactory类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.apache.jackrabbit.webdav.DavResourceFactory的典型用法代码示例。如果您正苦于以下问题:Java DavResourceFactory类的具体用法?Java DavResourceFactory怎么用?Java DavResourceFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

DavResourceFactory类属于org.apache.jackrabbit.webdav包,在下文中一共展示了DavResourceFactory类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: ArchivaDavResource

点赞 3

import org.apache.jackrabbit.webdav.DavResourceFactory; //导入依赖的package包/类
public ArchivaDavResource( String localResource, String logicalResource, ManagedRepository repository,
                           DavSession session, ArchivaDavResourceLocator locator, DavResourceFactory factory,
                           MimeTypes mimeTypes, List<AuditListener> auditListeners,
                           RepositoryArchivaTaskScheduler scheduler, FileLockManager fileLockManager )
{
    this.localResource = new File( localResource );
    this.logicalResource = logicalResource;
    this.locator = locator;
    this.factory = factory;
    this.session = session;

    // TODO: push into locator as well as moving any references out of the resource factory
    this.repository = repository;

    // TODO: these should be pushed into the repository layer, along with the physical file operations in this class
    this.mimeTypes = mimeTypes;
    this.auditListeners = auditListeners;
    this.scheduler = scheduler;
    this.fileLockManager = fileLockManager;
}
 

开发者ID:ruikom,
项目名称:apache-archiva,
代码行数:21,
代码来源:ArchivaDavResource.java

示例2: ArchivaDavResource

点赞 3

import org.apache.jackrabbit.webdav.DavResourceFactory; //导入依赖的package包/类
public ArchivaDavResource( String localResource, String logicalResource, org.apache.archiva.repository.ManagedRepository repository,
                           DavSession session, ArchivaDavResourceLocator locator, DavResourceFactory factory,
                           MimeTypes mimeTypes, List<AuditListener> auditListeners,
                           RepositoryArchivaTaskScheduler scheduler, FileLockManager fileLockManager )
{
    this.localResource = Paths.get( localResource );
    this.logicalResource = logicalResource;
    this.locator = locator;
    this.factory = factory;
    this.session = session;

    // TODO: push into locator as well as moving any references out of the resource factory
    this.repository = repository;

    // TODO: these should be pushed into the repository layer, along with the physical file operations in this class
    this.mimeTypes = mimeTypes;
    this.auditListeners = auditListeners;
    this.scheduler = scheduler;
    this.fileLockManager = fileLockManager;
}
 

开发者ID:apache,
项目名称:archiva,
代码行数:21,
代码来源:ArchivaDavResource.java

示例3: ArchivaVirtualDavResource

点赞 2

import org.apache.jackrabbit.webdav.DavResourceFactory; //导入依赖的package包/类
public ArchivaVirtualDavResource( List<File> localResources, String logicalResource, MimeTypes mimeTypes,
                                  ArchivaDavResourceLocator locator, DavResourceFactory factory )
{
    this.localResources = localResources;
    this.logicalResource = logicalResource;
    this.locator = locator;
    this.factory = factory;
    this.properties = new DavPropertySet();
}
 

开发者ID:ruikom,
项目名称:apache-archiva,
代码行数:10,
代码来源:ArchivaVirtualDavResource.java

示例4: getFactory

点赞 2

import org.apache.jackrabbit.webdav.DavResourceFactory; //导入依赖的package包/类
@Override
public DavResourceFactory getFactory()
{
    return factory;
}
 

开发者ID:ruikom,
项目名称:apache-archiva,
代码行数:6,
代码来源:ArchivaVirtualDavResource.java

示例5: initServers

点赞 2

import org.apache.jackrabbit.webdav.DavResourceFactory; //导入依赖的package包/类
public synchronized void initServers( ServletConfig servletConfig )
    throws RepositoryAdminException
{

    long start = System.currentTimeMillis();

    WebApplicationContext wac =
        WebApplicationContextUtils.getRequiredWebApplicationContext( servletConfig.getServletContext() );

    configuration = wac.getBean( "archivaConfiguration#default", ArchivaConfiguration.class );
    configuration.addListener( this );

    managedRepositoryAdmin = wac.getBean( ManagedRepositoryAdmin.class );

    repositoryMap = managedRepositoryAdmin.getManagedRepositoriesAsMap();

    for ( ManagedRepository repo : repositoryMap.values() )
    {
        File repoDir = new File( repo.getLocation() );

        if ( !repoDir.exists() )
        {
            if ( !repoDir.mkdirs() )
            {
                // Skip invalid directories.
                log.info( "Unable to create missing directory for {}", repo.getLocation() );
                continue;
            }
        }
    }

    resourceFactory = wac.getBean( "davResourceFactory#archiva", DavResourceFactory.class );
    locatorFactory = new ArchivaDavLocatorFactory();

    ServletAuthenticator servletAuth = wac.getBean( ServletAuthenticator.class );
    HttpAuthenticator httpAuth = wac.getBean( "httpAuthenticator#basic", HttpAuthenticator.class );

    sessionProvider = new ArchivaDavSessionProvider( servletAuth, httpAuth );

    long end = System.currentTimeMillis();

    log.info( "initServers done in {} ms", (end - start) );
}
 

开发者ID:ruikom,
项目名称:apache-archiva,
代码行数:44,
代码来源:RepositoryServlet.java

示例6: getResourceFactory

点赞 2

import org.apache.jackrabbit.webdav.DavResourceFactory; //导入依赖的package包/类
@Override
public DavResourceFactory getResourceFactory()
{
    return resourceFactory;
}
 

开发者ID:ruikom,
项目名称:apache-archiva,
代码行数:6,
代码来源:RepositoryServlet.java

示例7: setResourceFactory

点赞 2

import org.apache.jackrabbit.webdav.DavResourceFactory; //导入依赖的package包/类
@Override
public void setResourceFactory( final DavResourceFactory davResourceFactory )
{
    resourceFactory = davResourceFactory;
}
 

开发者ID:ruikom,
项目名称:apache-archiva,
代码行数:6,
代码来源:RepositoryServlet.java

示例8: getFactory

点赞 2

import org.apache.jackrabbit.webdav.DavResourceFactory; //导入依赖的package包/类
@Override
public
@Nullable
DavResourceFactory getFactory() {
    return pathDavFactory;
}
 

开发者ID:openCage,
项目名称:niodav,
代码行数:7,
代码来源:DavPath.java

示例9: getResourceFactory

点赞 2

import org.apache.jackrabbit.webdav.DavResourceFactory; //导入依赖的package包/类
@Override
public @Nullable DavResourceFactory getResourceFactory() {
    return resourceFactory;
}
 

开发者ID:openCage,
项目名称:niodav,
代码行数:5,
代码来源:NioDavServlet.java

示例10: setResourceFactory

点赞 2

import org.apache.jackrabbit.webdav.DavResourceFactory; //导入依赖的package包/类
@Override
public void setResourceFactory( @Nullable DavResourceFactory resourceFactory ) {
    this.resourceFactory = resourceFactory;
}
 

开发者ID:openCage,
项目名称:niodav,
代码行数:5,
代码来源:NioDavServlet.java

示例11: getFactory

点赞 2

import org.apache.jackrabbit.webdav.DavResourceFactory; //导入依赖的package包/类
@Override
public DavResourceFactory getFactory() {
    return factory;
}
 

开发者ID:Benky,
项目名称:webdav-cassandra,
代码行数:5,
代码来源:AbstractDavResource.java

示例12: getFactory

点赞 2

import org.apache.jackrabbit.webdav.DavResourceFactory; //导入依赖的package包/类
public DavResourceFactory getFactory() {
	return resourceCache.getEnviorment().getResourceFactory();
}
 

开发者ID:wso2,
项目名称:carbon-registry,
代码行数:4,
代码来源:RegistryResource.java

示例13: getResourceFactory

点赞 2

import org.apache.jackrabbit.webdav.DavResourceFactory; //导入依赖的package包/类
public DavResourceFactory getResourceFactory() {
	return resourceFactory;
}
 

开发者ID:wso2,
项目名称:carbon-registry,
代码行数:4,
代码来源:WebDavEnviorment.java

示例14: setResourceFactory

点赞 2

import org.apache.jackrabbit.webdav.DavResourceFactory; //导入依赖的package包/类
public void setResourceFactory(DavResourceFactory resourceFactory) {
	this.resourceFactory = resourceFactory;
}
 

开发者ID:wso2,
项目名称:carbon-registry,
代码行数:4,
代码来源:WebDavEnviorment.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)