common/src/main/java/HTTPClient/AuthorizationInfo.java
/**
     * Adds an authorization entry to the list. If an entry for the
     * specified scheme and realm already exists then its cookie and
     * params are replaced with the new data.
     *
     * @param auth_info the AuthorizationInfo to add
     * @param context   the context to associate this info with
     */
Adds an authorization entry to the list. If an entry for the
specified scheme and realm already exists then its cookie and
params are replaced with the new data.

@param auth_info the AuthorizationInfo to add
@param context   the context to associate this info with
Adds an authorization entry to the list . If an entry for the specified scheme and realm already exists then its cookie and params are replaced with the new data . @param auth_info the AuthorizationInfo to add @param context the context to associate this info with
@SuppressWarnings("unchecked")
    public static void addAuthorization(AuthorizationInfo auth_info,
					Object context)
    {
	Hashtable AuthList = Util.getList(CntxtList, context);
	AuthorizationInfo old_info =
			    (AuthorizationInfo) AuthList.get(auth_info);
	if (old_info != null)
	{
	    int ol = old_info.paths.length,
		al = auth_info.paths.length;
	    if (al == 0)
		auth_info.paths = old_info.paths;
	    else
	    {
		auth_info.paths = Util.resizeArray(auth_info.paths, al+ol);
		System.arraycopy(old_info.paths, 0, auth_info.paths, al, ol);
	    }
	}
	AuthList.put(auth_info, auth_info);
    }
@ SuppressWarnings ( "unchecked" ) public static void addAuthorization ( AuthorizationInfo auth_info , Object context ) { Hashtable AuthList = Util . getList ( CntxtList , context ) ; AuthorizationInfo old_info = ( AuthorizationInfo ) AuthList . get ( auth_info ) ; if ( old_info != null ) { int ol = old_info . paths . length , al = auth_info . paths . length ; if ( al == 0 ) auth_info . paths = old_info . paths ; else { auth_info . paths = Util . resizeArray ( auth_info . paths , al + ol ) ; System . arraycopy ( old_info . paths , 0 , auth_info . paths , al , ol ) ; } } AuthList . put ( auth_info , auth_info ) ; }
Adds an authorization entry to the list.
Adds an authorization entry to the list .
// merge path list