Class DefaultProxyAuthenticator
java.lang.Object
org.apache.synapse.transport.http.conn.DefaultProxyAuthenticator
- All Implemented Interfaces:
ProxyAuthenticator
DefaultProxyAuthenticator will be initialized when proxy is configured with http.proxyHost
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidauthenticatePreemptively(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) this will add authentication header to the request
-
Constructor Details
-
DefaultProxyAuthenticator
public DefaultProxyAuthenticator(org.apache.http.auth.Credentials credentials) throws org.apache.http.auth.MalformedChallengeException - Throws:
org.apache.http.auth.MalformedChallengeException
-
-
Method Details
-
authenticatePreemptively
public void authenticatePreemptively(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws org.apache.http.auth.AuthenticationException this will add authentication header to the request- Specified by:
authenticatePreemptivelyin interfaceProxyAuthenticator- Parameters:
request- outgoing http requestcontext- http context- Throws:
org.apache.http.auth.AuthenticationException
-