@@ -40,6 +40,8 @@ public final class SiteConfig
4040
4141 public static final int DEFAULT_CONNECTION_POOL_TIMEOUT_SECONDS = 60 ;
4242
43+ public static final String DEFAULT_PROXY_ALLOW_HTTP_JOB_TYPES = "download,existence,listing" ;
44+
4345 private final String id ;
4446
4547 private final String uri ;
@@ -52,6 +54,8 @@ public final class SiteConfig
5254
5355 private final String proxyUser ;
5456
57+ private final String proxyAllowHttpJobTypes ;
58+
5559 private final SiteTrustType trustType ;
5660
5761 private final String keyCertPem ;
@@ -87,18 +91,20 @@ public final class SiteConfig
8791 private final Integer baseSampleRate ;
8892
8993 SiteConfig ( String id , String uri , String user , String proxyHost , Integer proxyPort , String proxyUser ,
90- SiteTrustType trustType , String keyCertPem , String serverCertPem , Integer requestTimeoutSeconds ,
91- Integer connectionPoolTimeoutSeconds , Integer maxConnections , Integer maxPerRoute ,
92- final ConnectionConfig connectionConfig , final SocketConfig socketConfig ,
93- final RequestConfig requestConfig , HttpClientContext clientContextPrototype , boolean ignoreHostnameVerification , Map <String , Object > attributes ,
94- Boolean metricEnabled , String honeycombDataset , String honeycombWriteKey , Integer baseSampleRate )
94+ String proxyAllowHttpJobTypes , SiteTrustType trustType , String keyCertPem , String serverCertPem ,
95+ Integer requestTimeoutSeconds , Integer connectionPoolTimeoutSeconds , Integer maxConnections ,
96+ Integer maxPerRoute , final ConnectionConfig connectionConfig , final SocketConfig socketConfig ,
97+ final RequestConfig requestConfig , HttpClientContext clientContextPrototype ,
98+ boolean ignoreHostnameVerification , Map <String , Object > attributes , Boolean metricEnabled ,
99+ String honeycombDataset , String honeycombWriteKey , Integer baseSampleRate )
95100 {
96101 this .id = id ;
97102 this .uri = uri ;
98103 this .user = user ;
99104 this .proxyHost = proxyHost ;
100105 this .proxyPort = proxyPort ;
101106 this .proxyUser = proxyUser ;
107+ this .proxyAllowHttpJobTypes = proxyAllowHttpJobTypes ;
102108 this .trustType = trustType ;
103109 this .keyCertPem = keyCertPem ;
104110 this .serverCertPem = serverCertPem ;
@@ -168,6 +174,11 @@ public String getProxyUser()
168174 return proxyUser ;
169175 }
170176
177+ public String getProxyAllowHttpJobTypes ()
178+ {
179+ return proxyAllowHttpJobTypes == null ? DEFAULT_PROXY_ALLOW_HTTP_JOB_TYPES : proxyAllowHttpJobTypes ;
180+ }
181+
171182 public String getKeyCertPem ()
172183 {
173184 return keyCertPem ;
0 commit comments