Class WWWAuthenticationProtocolHandler

    • Constructor Detail

      • WWWAuthenticationProtocolHandler

        public WWWAuthenticationProtocolHandler​(HttpClient client)
        Deprecated.
      • WWWAuthenticationProtocolHandler

        public WWWAuthenticationProtocolHandler​(HttpClient client,
                                                int maxContentLength)
        Deprecated.
    • Method Detail

      • getName

        public String getName()
        Deprecated.
        Returns:
        a unique name among protocol handlers
      • accept

        public boolean accept​(Request request,
                              Response response)
        Deprecated.
        Description copied from interface: ProtocolHandler

        Inspects the given request and response to detect whether this protocol handler should handle them.

        For example, a redirect protocol handler can inspect the response code and return true if it is a redirect response code.

        This method is being called just after the response line has been parsed, and before the response headers are available.

        Parameters:
        request - the request to accept
        response - the response to accept
        Returns:
        true if this protocol handler can handle the given request and response