public class PreemptiveAuthInterceptor extends Object implements org.apache.http.HttpRequestInterceptor
| Constructor and Description |
|---|
PreemptiveAuthInterceptor()
Constructs a new PreemptiveAuthInterceptor.
|
PreemptiveAuthInterceptor(org.apache.http.auth.AuthScheme authScheme,
org.apache.http.auth.Credentials credentials)
Deprecated.
|
public PreemptiveAuthInterceptor()
httpClient.addRequestInterceptor(new PreemptiveAuthInterceptor(), 0);
@Deprecated public PreemptiveAuthInterceptor(org.apache.http.auth.AuthScheme authScheme, org.apache.http.auth.Credentials credentials)
httpClient.addRequestInterceptor(
new PreemptiveAuthInterceptor(new BasicScheme(), credentials), 0);
NOTE: This constructor is deprecated and may be removed in a future
release.
authScheme - The AuthScheme to use. This may not be null.credentials - The Credentials to use. This may not be null.public void process(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException, IOException
process in interface org.apache.http.HttpRequestInterceptororg.apache.http.HttpExceptionIOExceptionCopyright © 2011–2016 UnboundID. All rights reserved.