agave-systems/systems-core/src/main/java/org/iplantc/service/transfer/model/TransferTask.java
/**
     * Converts an Agave URL to standard HTTP URL for reference in the hypermedia links 
     * included in the JSON response. If the link is not an Agave url, it is returned as is.
     * 
     * @param endpoint to resolve. Can be of the form agave:// or http(s)://
     * @return String resolved url
     */
Converts an Agave URL to standard HTTP URL for reference in the hypermedia links
included in the JSON response. If the link is not an Agave url, it is returned as is.

@param endpoint to resolve. Can be of the form agave:// or http(s):
@return String resolved url
Converts an Agave URL to standard HTTP URL for reference in the hypermedia links included in the JSON response . If the link is not an Agave url it is returned as is . @param endpoint to resolve . Can be of the form agave : // or http ( s ) : @return String resolved url
public String resolveEndpointToUrl(String endpoint) 
    {
        URI endpointUri = URI.create(endpoint);
		if (AgaveUriUtil.isInternalURI(endpointUri)) {
			if (StringUtils.equalsIgnoreCase(endpointUri.getScheme(), "agave")) {
				return TenancyHelper.resolveURLToCurrentTenant(Settings.IPLANT_IO_SERVICE)
						+ "/media/system/" + endpointUri.getHost() + endpointUri.getPath();
			}
		}
        return endpoint;
    }
public String resolveEndpointToUrl ( String endpoint ) { URI endpointUri = URI . create ( endpoint ) ; if ( AgaveUriUtil . isInternalURI ( endpointUri ) ) { if ( StringUtils . equalsIgnoreCase ( endpointUri . getScheme ( ) , "agave" ) ) { return TenancyHelper . resolveURLToCurrentTenant ( Settings . IPLANT_IO_SERVICE ) + "/media/system/" + endpointUri . getHost ( ) + endpointUri . getPath ( ) ; } } return endpoint ; }
Converts an Agave URL to standard HTTP URL for reference in the hypermedia links
 included in the JSON response.
Converts an Agave URL to standard HTTP URL for reference in the hypermedia links included in the JSON response .