Search in sources :

Example 1 with AttributePasswordManager

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

the class IndyHttpProvider method setup.

@PostConstruct
public void setup() {
    passwordManager = new org.commonjava.maven.galley.auth.AttributePasswordManager();
    Optional<TraceManager> traceManagerOptional = traceManager == null ? Optional.empty() : Optional.of(traceManager);
    http = new HttpImpl(passwordManager, traceManagerOptional);
    httpFactory = new SpanningHttpFactory(new HttpFactory(new AttributePasswordManager(siteConfigLookup)), traceManagerOptional);
}
Also used : SpanningHttpFactory(org.commonjava.o11yphant.jhttpc.SpanningHttpFactory) HttpFactory(org.commonjava.util.jhttpc.HttpFactory) SpanningHttpFactory(org.commonjava.o11yphant.jhttpc.SpanningHttpFactory) TraceManager(org.commonjava.o11yphant.trace.TraceManager) AttributePasswordManager(org.commonjava.util.jhttpc.auth.AttributePasswordManager) HttpImpl(org.commonjava.maven.galley.transport.htcli.HttpImpl) PostConstruct(javax.annotation.PostConstruct)

Aggregations

PostConstruct (javax.annotation.PostConstruct)1 HttpImpl (org.commonjava.maven.galley.transport.htcli.HttpImpl)1 SpanningHttpFactory (org.commonjava.o11yphant.jhttpc.SpanningHttpFactory)1 TraceManager (org.commonjava.o11yphant.trace.TraceManager)1 HttpFactory (org.commonjava.util.jhttpc.HttpFactory)1 AttributePasswordManager (org.commonjava.util.jhttpc.auth.AttributePasswordManager)1