private void closeAuthSchemeQuietly ( HttpMethod method ) { AuthScheme scheme = method . getHostAuthState ( ) . getAuthScheme ( ) ; if ( scheme instanceof Closeable ) { try { ( ( Closeable ) scheme ) . close ( ) ; } catch ( IOException e ) { log . error ( "Could not close [" + scheme . getSchemeName ( ) + "] auth scheme" , e ) ; } } }
Close the underlying authscheme if it is a Closeable object .