common/src/main/java/HTTPClient/HTTPConnection.java
/**
     * Generate an array of instances of the current modules.
     */
Generate an array of instances of the current modules.
Generate an array of instances of the current modules .
private HTTPClientModule[] gen_mod_insts()
    {
	synchronized (ModuleList)
	{
	    HTTPClientModule[] mod_insts =
		new HTTPClientModule[ModuleList.size()];
	    for (int idx=0; idx<ModuleList.size(); idx++)
	    {
		Class<?> mod = ModuleList.elementAt(idx);
		try
		    { mod_insts[idx] = (HTTPClientModule) mod.newInstance(); }
		catch (Exception e)
		{
		    throw new Error("HTTPClient Internal Error: could not " +
				    "create instance of " + mod.getName() +
				    " -\n" + e);
		}
	    }
	    return mod_insts;
	}
    }
private HTTPClientModule [ ] gen_mod_insts ( ) { synchronized ( ModuleList ) { HTTPClientModule [ ] mod_insts = new HTTPClientModule [ ModuleList . size ( ) ] ; for ( int idx = 0 ; idx < ModuleList . size ( ) ; idx ++ ) { Class < ? > mod = ModuleList . elementAt ( idx ) ; try { mod_insts [ idx ] = ( HTTPClientModule ) mod . newInstance ( ) ; } catch ( Exception e ) { throw new Error ( "HTTPClient Internal Error: could not " + "create instance of " + mod . getName ( ) + " -\n" + e ) ; } } return mod_insts ; } }
Generate an array of instances of the current modules.
Generate an array of instances of the current modules .