Example usage for org.apache.commons.httpclient HttpMethodBase getProxyAuthState

List of usage examples for org.apache.commons.httpclient HttpMethodBase getProxyAuthState

Introduction

In this page you can find the example usage for org.apache.commons.httpclient HttpMethodBase getProxyAuthState.

Prototype

@Override
public AuthState getProxyAuthState() 

Source Link

Document

Returns the proxy AuthState authentication state

Usage

From source file:org.eclipse.ecf.provider.filetransfer.httpclient.NTLMProxyDetector.java

public static boolean detectNTLMProxy(HttpMethodBase method) {
    if (method == null)
        return false;
    AuthState authState = method.getProxyAuthState();
    if (authState == null)
        return false;
    AuthScheme authScheme = authState.getAuthScheme();
    if (authScheme == null)
        return false;
    String schemeName = authScheme.getSchemeName();
    if (schemeName == null)
        return false;
    return schemeName.equalsIgnoreCase(PROXY_NTLM_VALUE);
}