Class AbstractAuthLogicHandler

    • Field Detail

      • request

        protected ProxyRequest request
        The request to be handled by the proxy.
      • proxyIoSession

        protected ProxyIoSession proxyIoSession
        Object that contains all the proxy authentication session informations.
      • step

        protected int step
        The current handshake step.
    • Constructor Detail

      • AbstractAuthLogicHandler

        protected AbstractAuthLogicHandler​(ProxyIoSession proxyIoSession)
                                    throws ProxyAuthException
        Instantiates a handler for the given proxy session.
        Parameters:
        proxyIoSession - the proxy session object
        Throws:
        ProxyAuthException - If we get an error during the proxy authentication
    • Method Detail

      • doHandshake

        public abstract void doHandshake​(IoFilter.NextFilter nextFilter)
                                  throws ProxyAuthException
        Method called at each step of the handshaking process.
        Parameters:
        nextFilter - the next filter
        Throws:
        ProxyAuthException - If we get an error during the proxy authentication
      • handleResponse

        public abstract void handleResponse​(HttpProxyResponse response)
                                     throws ProxyAuthException
        Handles a HTTP response from the proxy server.
        Parameters:
        response - The HTTP response.
        Throws:
        ProxyAuthException - If we get an error during the proxy authentication
      • addKeepAliveHeaders

        public static void addKeepAliveHeaders​(Map<String,​List<String>> headers)
        Try to force proxy connection to be kept alive.
        Parameters:
        headers - the request headers