Téléchargement des résultats publiés à distance

Pour les générations de documents à distance, vous pouvez utiliser l'utilitaire URLDataProvider pour accéder à l'archive des résultats et au journal distant.
URLDataProvider urlutil = new URLDataProvider();

for( RPEResult result : localDocgen.getResults())
{
	String type = PropertyUtils.getPropertyRawValue( result.getProperty(RPEConfigConstants.PROPERTY_TYPE), "");  //$NON-NLS-1$
	String location = PropertyUtils.getPropertyRawValue( result.getProperty(RPEConfigConstants.PROPERTY_PATH), "");  //$NON-NLS-1$
	System.out.println( type + ": " + path);

	if ( isRemote)
	{
		String localCopy = urlutil.cacheResource( location, credential);
		logger.info("\t\t" + " local copy: " + localCopy); 
	}
}

Retour d'informations