protected String callBridge(RestHttpHelper restHelper, String bridgeURL) {
        log.info("Making bridge call to get snapshot contents. URL: {}", bridgeURL);

        try {
            RestHttpHelper.HttpResponse response = restHelper.get(bridgeURL);
            int statusCode = response.getStatusCode();
            if (statusCode != 200) {
                throw new RuntimeException("Unexpected response code: " +
                                           statusCode);
            }
            return response.getResponseBody();
        } catch (Exception e) {
            throw new TaskException("Exception encountered attempting to " +
                                    "get snapshot contents. " +
                                    "Error reported: " + e.getMessage(), e);
        }
    }
protected String callBridge ( RestHttpHelper restHelper , String bridgeURL ) { log . info ( "Making bridge call to get snapshot contents. URL: {}" , bridgeURL ) ; try { RestHttpHelper . HttpResponse response = restHelper . get ( bridgeURL ) ; int statusCode = response . getStatusCode ( ) ; if ( statusCode != 200 ) { throw new RuntimeException ( "Unexpected response code: " + statusCode ) ; } return response . getResponseBody ( ) ; } catch ( Exception e ) { throw new TaskException ( "Exception encountered attempting to " + "get snapshot contents. " + "Error reported: " + e . getMessage ( ) , e ) ; } }
/*
Calls the bridge application to get snapshot listing