Search in sources :

Example 6 with SiteConfigBuilder

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

the class AbstractIndyFunctionalTest method createIndyClient.

protected Indy createIndyClient() throws IndyClientException {
    SiteConfig config = new SiteConfigBuilder("indy", fixture.getUrl()).withRequestTimeoutSeconds(60).build();
    Collection<IndyClientModule> modules = getAdditionalClientModules();
    return new Indy(config, new MemoryPasswordManager(), new IndyObjectMapper(getAdditionalMapperModules()), modules.toArray(new IndyClientModule[modules.size()]));
}
Also used : IndyObjectMapper(org.commonjava.indy.model.core.io.IndyObjectMapper) SiteConfigBuilder(org.commonjava.util.jhttpc.model.SiteConfigBuilder) Indy(org.commonjava.indy.client.core.Indy) SiteConfig(org.commonjava.util.jhttpc.model.SiteConfig) MemoryPasswordManager(org.commonjava.util.jhttpc.auth.MemoryPasswordManager) IndyClientModule(org.commonjava.indy.client.core.IndyClientModule)

Aggregations

SiteConfigBuilder (org.commonjava.util.jhttpc.model.SiteConfigBuilder)6 SiteConfig (org.commonjava.util.jhttpc.model.SiteConfig)4 Indy (org.commonjava.indy.client.core.Indy)2 IndyClientModule (org.commonjava.indy.client.core.IndyClientModule)2 IndyObjectMapper (org.commonjava.indy.model.core.io.IndyObjectMapper)2 MemoryPasswordManager (org.commonjava.util.jhttpc.auth.MemoryPasswordManager)2 HashMap (java.util.HashMap)1 Map (java.util.Map)1 TransferLocationException (org.commonjava.maven.galley.TransferLocationException)1 JHttpCException (org.commonjava.util.jhttpc.JHttpCException)1 ConfigurationException (org.commonjava.web.config.ConfigurationException)1