Search in sources :

Example 6 with TransportManagerConfig

use of org.commonjava.maven.galley.config.TransportManagerConfig in project galley by Commonjava.

the class EmbeddableCDIProducer method postConstruct.

@PostConstruct
public void postConstruct() {
    fileEventManager = new NoOpFileEventManager();
    transferDecorator = new NoOpTransferDecorator();
    pathGenerator = new HashedLocationPathGenerator();
    nfc = new MemoryNotFoundCache();
    // locationExpander = new NoOpLocationExpander();
    // locationResolver = new SimpleUrlLocationResolver( locationExpander, transportManager );
    transportManagerConfig = new TransportManagerConfig();
    passwordManager = new MemoryPasswordManager();
    http = new HttpImpl(passwordManager);
    objectMapper = new ObjectMapper();
    objectMapper.registerModules(new ProjectVersionRefSerializerModule());
    pluginDefaults = new StandardMaven350PluginDefaults();
    pluginImplications = new StandardMavenPluginImplications(xml);
}
Also used : NoOpFileEventManager(org.commonjava.maven.galley.event.NoOpFileEventManager) NoOpTransferDecorator(org.commonjava.maven.galley.io.NoOpTransferDecorator) HashedLocationPathGenerator(org.commonjava.maven.galley.io.HashedLocationPathGenerator) TransportManagerConfig(org.commonjava.maven.galley.config.TransportManagerConfig) MemoryNotFoundCache(org.commonjava.maven.galley.nfc.MemoryNotFoundCache) MemoryPasswordManager(org.commonjava.maven.galley.auth.MemoryPasswordManager) StandardMavenPluginImplications(org.commonjava.maven.galley.maven.internal.defaults.StandardMavenPluginImplications) HttpImpl(org.commonjava.maven.galley.transport.htcli.HttpImpl) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) ProjectVersionRefSerializerModule(org.commonjava.maven.atlas.ident.jackson.ProjectVersionRefSerializerModule) StandardMaven350PluginDefaults(org.commonjava.maven.galley.maven.internal.defaults.StandardMaven350PluginDefaults) PostConstruct(javax.annotation.PostConstruct)

Example 7 with TransportManagerConfig

use of org.commonjava.maven.galley.config.TransportManagerConfig in project indy by Commonjava.

the class DefaultGalleyStorageProvider method setup.

@PostConstruct
public void setup() {
    SpecialPathInfo infoSpi = SpecialPathInfo.from(new FilePatternMatcher(".+\\.info")).setDecoratable(false).setDeletable(false).setListable(false).setPublishable(false).setRetrievable(false).setStorable(false).build();
    specialPathManager.registerSpecialPathInfo(infoSpi);
    if (specialPathSetProducers != null) {
        specialPathSetProducers.forEach(producer -> {
            logger.trace("Adding special paths from: {}", producer.getClass().getName());
            specialPathManager.registerSpecialPathSet(producer.getSpecialPathSet());
        });
    }
    setupTransferDecoratorPipeline();
    setupCacheProviderFactory();
    // TODO: Tie this into a config file!
    transportManagerConfig = new TransportManagerConfig();
}
Also used : FilePatternMatcher(org.commonjava.maven.galley.model.FilePatternMatcher) SpecialPathInfo(org.commonjava.maven.galley.model.SpecialPathInfo) TransportManagerConfig(org.commonjava.maven.galley.config.TransportManagerConfig) PostConstruct(javax.annotation.PostConstruct)

Aggregations

TransportManagerConfig (org.commonjava.maven.galley.config.TransportManagerConfig)7 MemoryNotFoundCache (org.commonjava.maven.galley.nfc.MemoryNotFoundCache)6 NoOpFileEventManager (org.commonjava.maven.galley.event.NoOpFileEventManager)5 NoOpTransferDecorator (org.commonjava.maven.galley.io.NoOpTransferDecorator)5 HashedLocationPathGenerator (org.commonjava.maven.galley.io.HashedLocationPathGenerator)4 PostConstruct (javax.annotation.PostConstruct)3 MemoryPasswordManager (org.commonjava.maven.galley.auth.MemoryPasswordManager)3 FileCacheProvider (org.commonjava.maven.galley.cache.FileCacheProvider)3 TransferManagerImpl (org.commonjava.maven.galley.internal.TransferManagerImpl)3 DownloadHandler (org.commonjava.maven.galley.internal.xfer.DownloadHandler)3 ExistenceHandler (org.commonjava.maven.galley.internal.xfer.ExistenceHandler)3 ListingHandler (org.commonjava.maven.galley.internal.xfer.ListingHandler)3 UploadHandler (org.commonjava.maven.galley.internal.xfer.UploadHandler)3 SpecialPathManagerImpl (org.commonjava.maven.galley.io.SpecialPathManagerImpl)3 TransportManagerImpl (org.commonjava.maven.galley.transport.TransportManagerImpl)3 IOException (java.io.IOException)2 NotFoundCache (org.commonjava.maven.galley.spi.nfc.NotFoundCache)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 File (java.io.File)1 InputStream (java.io.InputStream)1