Search in sources :

Example 1 with HttpFactory

use of org.commonjava.util.jhttpc.HttpFactory in project indy by Commonjava.

the class AbstractKojiIT method setupKojiBase.

@Before
public void setupKojiBase() {
    System.out.println("\n\n #### SETUP: " + name.getMethodName() + " #### \n\n");
    passwordManager = new MemoryPasswordManager();
    factory = new HttpFactory(passwordManager);
    System.out.println("\n\n #### START: " + name.getMethodName() + " #### \n\n");
    String buildDir = System.getProperty("project.build.directory", "target");
    downloadDir = Paths.get(buildDir, "downloads", name.getMethodName()).toFile();
    downloadDir.mkdirs();
}
Also used : HttpFactory(org.commonjava.util.jhttpc.HttpFactory) MemoryPasswordManager(org.commonjava.util.jhttpc.auth.MemoryPasswordManager) Before(org.junit.Before)

Example 2 with HttpFactory

use of org.commonjava.util.jhttpc.HttpFactory in project indy by Commonjava.

the class IndyHttpProvider method setup.

@PostConstruct
public void setup() {
    passwordManager = new org.commonjava.maven.galley.auth.AttributePasswordManager();
    http = new HttpImpl(passwordManager);
    httpFactory = new HttpFactory(new AttributePasswordManager(siteConfigLookup));
}
Also used : HttpFactory(org.commonjava.util.jhttpc.HttpFactory) AttributePasswordManager(org.commonjava.util.jhttpc.auth.AttributePasswordManager) HttpImpl(org.commonjava.maven.galley.transport.htcli.HttpImpl) PostConstruct(javax.annotation.PostConstruct)

Aggregations

HttpFactory (org.commonjava.util.jhttpc.HttpFactory)2 PostConstruct (javax.annotation.PostConstruct)1 HttpImpl (org.commonjava.maven.galley.transport.htcli.HttpImpl)1 AttributePasswordManager (org.commonjava.util.jhttpc.auth.AttributePasswordManager)1 MemoryPasswordManager (org.commonjava.util.jhttpc.auth.MemoryPasswordManager)1 Before (org.junit.Before)1