private boolean processAuthenticationResponse ( final HttpMethod method ) { LOG . trace ( "enter HttpMethodBase.processAuthenticationResponse(" + "HttpState, HttpConnection)" ) ; try { switch ( method . getStatusCode ( ) ) { case HttpStatus . SC_UNAUTHORIZED : return processWWWAuthChallenge ( method ) ; case HttpStatus . SC_PROXY_AUTHENTICATION_REQUIRED : return processProxyAuthChallenge ( method ) ; default : return false ; } } catch ( Exception e ) { if ( LOG . isErrorEnabled ( ) ) { LOG . error ( e . getMessage ( ) , e ) ; } return false ; } }
Processes a response that requires authentication