org.apache.synapse.transport.http.conn

## Interface ProxyAuthenticator

- All Known Implementing Classes:
    DefaultProxyAuthenticator, ProfileProxyAuthenticator

      public interface ProxyAuthenticator

  If 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 and Description
    --- | ---
    `void` | `authenticatePreemptively(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.AuthenticationException

      Adds proxy authentication header to the request
      Parameters:
        `request` - out going request
        `context` - http context
      Throws:
        `org.apache.http.auth.AuthenticationException`

Copyright © 2005–2017 Apache Software Foundation. All rights reserved.