public String get()

in src/main/java/com/epam/dep/esp/common/web/Web.java [157:169]


    public String get(String path, Map<String, String> headers, Map<String, String> params, Credentials credentials) throws WebToolsException {
        try {
            URI uri = buildURI(path, params);
            HttpGet httpGet = new HttpGet(uri);
            httpGet.setConfig(requestConfig);
            addHeaders(httpGet, headers);
            addCredentials(httpGet, credentials);
            HttpClientContext context = HttpClientContext.create();
            return performRequest(context, httpGet);
        } catch (URISyntaxException | IOException ex) {
            throw new WebToolsException("Unable to perform GET. " + ex.getMessage(), ex);
        }
    }