Interface ProxyAuthenticator
-
- All Known Implementing Classes:
DefaultProxyAuthenticator,ProfileProxyAuthenticator
public interface ProxyAuthenticatorIf proxy server is configured with username and password, appropriate implementation of ProxyAuthenticator will be initialised based on the proxy configuration (profile / default)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidauthenticatePreemptively(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)Adds proxy authentication header to the request
-
-
-
Method Detail
-
authenticatePreemptively
void authenticatePreemptively(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws org.apache.http.auth.AuthenticationExceptionAdds proxy authentication header to the request- Parameters:
request- out going requestcontext- http context- Throws:
org.apache.http.auth.AuthenticationException
-
-