FileDocCategorySizeDatePackage
DefaultProxyAuthenticationHandler.javaAPI DocAndroid 1.5 API2776Wed May 06 22:41:10 BST 2009org.apache.http.impl.client

DefaultProxyAuthenticationHandler

public class DefaultProxyAuthenticationHandler extends AbstractAuthenticationHandler
author
Oleg Kalnichevski

Fields Summary
Constructors Summary
public DefaultProxyAuthenticationHandler()

        super();
    
Methods Summary
public java.util.MapgetChallenges(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)

        if (response == null) {
            throw new IllegalArgumentException("HTTP response may not be null");
        }
        Header[] headers = response.getHeaders(AUTH.PROXY_AUTH);
        return parseChallenges(headers);
    
public booleanisAuthenticationRequested(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)

        if (response == null) {
            throw new IllegalArgumentException("HTTP response may not be null");
        }
        int status = response.getStatusLine().getStatusCode();
        return status == HttpStatus.SC_PROXY_AUTHENTICATION_REQUIRED;