private static String getServerResponse(String protocol,
                                            String user,
                                            String pass,
                                            String path) throws IOException {
        String url = getBaseURL(protocol) + path;
        logger.info("Getting URL: {}", url);
        UsernamePasswordCredentials creds =
                new UsernamePasswordCredentials(user, pass);
        return s_webClient.getResponseAsString(url, true, creds);
    }
private static String getServerResponse ( String protocol , String user , String pass , String path ) throws IOException { String url = getBaseURL ( protocol ) + path ; logger . info ( "Getting URL: {}" , url ) ; UsernamePasswordCredentials creds = new UsernamePasswordCredentials ( user , pass ) ; return s_webClient . getResponseAsString ( url , true , creds ) ; }
Hits the given Fedora Server URL and returns the response as a String.
Throws an IOException if the response code is not 200(OK).