List of usage examples for org.apache.http.client AuthenticationHandler isAuthenticationRequested
boolean isAuthenticationRequested(HttpResponse response, HttpContext context);
From source file:net.shirayu.android.WlanLogin.MyHttpClient.java
public void process(HttpResponse response, HttpContext context) throws HttpException, IOException { AuthenticationHandler handler = client.getTargetAuthenticationHandler(); if (stop_auth && handler.isAuthenticationRequested(response, context)) { throw new ClientProtocolException("Authentication failed"); }//from w w w . j av a 2 s . c o m }