- Timestamp:
- 01/05/22 22:26:59 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SRUClient/trunk/src/main/java/eu/clarin/sru/client/SRUClientConfig.java
r7194 r7266 39 39 private final CloseableHttpClient httpClient; 40 40 private final HttpClientContext httpContext; 41 private final SRURequestAuthenticator requestAuthenticator; 41 42 private final int threadCount; 42 43 private final List<SRURecordDataParser> recordParsers; … … 83 84 public CloseableHttpClient getCustomizedHttpClient() { 84 85 return httpClient; 86 } 87 88 89 /** 90 * Get the request authenticator 91 * 92 * @return the configured request authenticator or <code>null</code> 93 */ 94 public SRURequestAuthenticator getRequestAuthenticator() { 95 return requestAuthenticator; 85 96 } 86 97 … … 142 153 this.httpContext = null; 143 154 } 155 this.requestAuthenticator = builder.requestAuthenticator; 144 156 this.threadCount = builder.threadCount; 145 157 if (builder.recordParsers != null) { … … 170 182 private CloseableHttpClient httpClient = null; 171 183 private HttpClientContext httpContext = null; 184 private SRURequestAuthenticator requestAuthenticator; 172 185 private int threadCount = 173 186 Runtime.getRuntime().availableProcessors() * 2; … … 271 284 272 285 286 public Builder setRequestAuthenticator( 287 SRURequestAuthenticator requestAuthenticator) { 288 this.requestAuthenticator = requestAuthenticator; 289 return this; 290 } 291 292 273 293 /** 274 294 * Set the number of worker threads. This value is only relevant for the
Note: See TracChangeset
for help on using the changeset viewer.