diff --git a/src/main/java/org/commonjava/util/jhttpc/model/SiteConfig.java b/src/main/java/org/commonjava/util/jhttpc/model/SiteConfig.java index 07629e3..dcf9185 100644 --- a/src/main/java/org/commonjava/util/jhttpc/model/SiteConfig.java +++ b/src/main/java/org/commonjava/util/jhttpc/model/SiteConfig.java @@ -54,6 +54,8 @@ public final class SiteConfig private final String proxyAllowHttpJobTypes; + private final String egressSites; + private final SiteTrustType trustType; private final String keyCertPem; @@ -89,12 +91,13 @@ public final class SiteConfig private final Integer baseSampleRate; SiteConfig( String id, String uri, String user, String proxyHost, Integer proxyPort, String proxyUser, - String proxyAllowHttpJobTypes, SiteTrustType trustType, String keyCertPem, String serverCertPem, - Integer requestTimeoutSeconds, Integer connectionPoolTimeoutSeconds, Integer maxConnections, - Integer maxPerRoute, final ConnectionConfig connectionConfig, final SocketConfig socketConfig, - final RequestConfig requestConfig, HttpClientContext clientContextPrototype, - boolean ignoreHostnameVerification, Map attributes, Boolean metricEnabled, - String honeycombDataset, String honeycombWriteKey, Integer baseSampleRate ) + String proxyAllowHttpJobTypes, String egressSites, SiteTrustType trustType, String keyCertPem, + String serverCertPem, Integer requestTimeoutSeconds, Integer connectionPoolTimeoutSeconds, + Integer maxConnections, Integer maxPerRoute, final ConnectionConfig connectionConfig, + final SocketConfig socketConfig, final RequestConfig requestConfig, + HttpClientContext clientContextPrototype, boolean ignoreHostnameVerification, + Map attributes, Boolean metricEnabled, String honeycombDataset, + String honeycombWriteKey, Integer baseSampleRate ) { this.id = id; this.uri = uri; @@ -103,6 +106,7 @@ public final class SiteConfig this.proxyPort = proxyPort; this.proxyUser = proxyUser; this.proxyAllowHttpJobTypes = proxyAllowHttpJobTypes; + this.egressSites = egressSites; this.trustType = trustType; this.keyCertPem = keyCertPem; this.serverCertPem = serverCertPem; @@ -177,6 +181,11 @@ public String getProxyAllowHttpJobTypes() return proxyAllowHttpJobTypes; } + public String getEgressSites() + { + return egressSites; + } + public String getKeyCertPem() { return keyCertPem; diff --git a/src/main/java/org/commonjava/util/jhttpc/model/SiteConfigBuilder.java b/src/main/java/org/commonjava/util/jhttpc/model/SiteConfigBuilder.java index 1099cde..790bc99 100644 --- a/src/main/java/org/commonjava/util/jhttpc/model/SiteConfigBuilder.java +++ b/src/main/java/org/commonjava/util/jhttpc/model/SiteConfigBuilder.java @@ -50,6 +50,8 @@ public class SiteConfigBuilder private String proxyAllowHttpJobTypes; + private String egressSites; + private SiteTrustType trustType; private String keyCertPem; @@ -101,11 +103,11 @@ public SiteConfigBuilder( String id, String uri ) public SiteConfig build() { - return new SiteConfig( id, uri, user, proxyHost, proxyPort, proxyUser, proxyAllowHttpJobTypes, trustType, - keyCertPem, serverCertPem, requestTimeoutSeconds, connectionPoolTimeoutSeconds, - maxConnections, maxPerRoute, connectionConfig, socketConfig, requestConfig, - clientContextProtoype, ignoreHostnameVerification, attributes, metricEnabled, - honeycombDataset, honeycombWriteKey, baseSampleRate ); + return new SiteConfig( id, uri, user, proxyHost, proxyPort, proxyUser, proxyAllowHttpJobTypes, egressSites, + trustType, keyCertPem, serverCertPem, requestTimeoutSeconds, + connectionPoolTimeoutSeconds, maxConnections, maxPerRoute, connectionConfig, + socketConfig, requestConfig, clientContextProtoype, ignoreHostnameVerification, + attributes, metricEnabled, honeycombDataset, honeycombWriteKey, baseSampleRate ); } public String getId() @@ -157,6 +159,11 @@ public String getProxyAllowHttpJobTypes() return proxyAllowHttpJobTypes; } + public String getEgressSites() + { + return egressSites; + } + public String getKeyCertPem() { return keyCertPem; @@ -241,6 +248,12 @@ public SiteConfigBuilder withProxyAllowHttpJobTypes( String proxyAllowHttpJobTyp return this; } + public SiteConfigBuilder withEgressSites( String egressSites ) + { + this.egressSites = egressSites; + return this; + } + public SiteConfigBuilder withTrustType( SiteTrustType trustType ) { this.trustType = trustType;