common/src/main/java/HTTPClient/AuthorizationInfo.java
/**
     * Queries the AuthHandler for authorization info. It also adds this
     * info to the list.
     *
     * @param  auth_info  any info needed by the AuthHandler; at a minimum the
     *                    host, scheme and realm should be set.
     * @param  req        the request which initiated this query
     * @param  resp       the full response
     * @return a structure containing the requested info, or null if either
     *	       no AuthHandler is set or the user canceled the request.
     * @exception AuthSchemeNotImplException if this is thrown by
     *                                            the AuthHandler.
     */
Queries the AuthHandler for authorization info. It also adds this
info to the list.

@param  auth_info  any info needed by the AuthHandler; at a minimum the
host, scheme and realm should be set.
@param  req        the request which initiated this query
@param  resp       the full response
@return a structure containing the requested info, or null if either
no AuthHandler is set or the user canceled the request.
@exception AuthSchemeNotImplException if this is thrown by
the AuthHandler.
Queries the AuthHandler for authorization info . It also adds this info to the list . @param auth_info any info needed by the AuthHandler ; at a minimum the host scheme and realm should be set . @param req the request which initiated this query @param resp the full response @return a structure containing the requested info or null if either no AuthHandler is set or the user canceled the request . @exception AuthSchemeNotImplException if this is thrown by the AuthHandler .
static AuthorizationInfo queryAuthHandler(AuthorizationInfo auth_info,
					      RoRequest req, RoResponse resp, boolean proxy)
	throws AuthSchemeNotImplException, IOException
    {
	if (AuthHandler == null)
	    return null;
	AuthorizationInfo new_info =
		    AuthHandler.getAuthorization(auth_info, req, resp, proxy);
	if (new_info != null)
	{
	    if (req != null)
		addAuthorization((AuthorizationInfo) new_info.clone(),
				 req.getConnection().getContext());
	    else
		addAuthorization((AuthorizationInfo) new_info.clone(),
				 HTTPConnection.getDefaultContext());
	}
	return new_info;
    }
static AuthorizationInfo queryAuthHandler ( AuthorizationInfo auth_info , RoRequest req , RoResponse resp , boolean proxy ) throws AuthSchemeNotImplException , IOException { if ( AuthHandler == null ) return null ; AuthorizationInfo new_info = AuthHandler . getAuthorization ( auth_info , req , resp , proxy ) ; if ( new_info != null ) { if ( req != null ) addAuthorization ( ( AuthorizationInfo ) new_info . clone ( ) , req . getConnection ( ) . getContext ( ) ) ; else addAuthorization ( ( AuthorizationInfo ) new_info . clone ( ) , HTTPConnection . getDefaultContext ( ) ) ; } return new_info ; }
Queries the AuthHandler for authorization info.
Queries the AuthHandler for authorization info .