public void resolveSourceLocations( final AbstractGraphRequest recipe ) throws CartoRequestException { if ( recipe == null ) { return; } final String spec = recipe.getSource(); if ( spec == null ) { return; } Location location; try { location = resolver.resolve( spec ); } catch ( final TransferException e ) { throw new CartoRequestException( "Failed to graph location from spec: '%s'. Reason: %s", e, spec, e.getMessage() ); } if ( location != null ) { recipe.setSourceLocation( location ); } }
public void resolveSourceLocations( final AbstractGraphRequest recipe ) throws CartoRequestException { if ( recipe == null ) { return; } final String spec = recipe.getSource(); if ( spec == null ) { return; } Location location; try { location = resolver.resolve( spec ); } catch ( final TransferException e ) { throw new CartoRequestException( "Failed to graph location from spec: '%s'. Reason: %s", e, spec, e.getMessage() ); } if ( location != null ) { recipe.setSourceLocation( location ); } }
protected void configure( final R recipe ) { recipe.setExcludedSubgraphs( excludedSubgraphs ); recipe.setInjectedBOMs( injectedBOMs ); recipe.setPatcherIds( patcherIds ); recipe.setResolve( resolve ); recipe.setSource( source ); recipe.setSourceLocation( sourceLocation ); recipe.setTimeoutSecs( timeoutSecs ); recipe.setVersionSelections( versionSelections ); recipe.setWorkspaceId( workspaceId ); }
protected void configure( final R recipe ) { recipe.setExcludedSubgraphs( excludedSubgraphs ); recipe.setInjectedBOMs( injectedBOMs ); recipe.setPatcherIds( patcherIds ); recipe.setResolve( resolve ); recipe.setSource( source ); recipe.setSourceLocation( sourceLocation ); recipe.setTimeoutSecs( timeoutSecs ); recipe.setVersionSelections( versionSelections ); recipe.setWorkspaceId( workspaceId ); }