public T get()

in src/main/java/org/apache/sling/hapi/client/impl/AbstractHtmlClientImpl.java [87:99]


    public <T extends Document> T get(String url) throws ClientException {
        try {
            URI absoluteUri = absoluteUri(url);
            LOG.info("GET " + absoluteUri);
            HttpResponse response = this.execute(new HttpGet(absoluteUri));
            return newDocument(EntityUtils.toString(response.getEntity()));

        } catch (URISyntaxException e) {
            throw new ClientException("Invalid get url " + url, e);
        } catch (Exception e) {
            throw new ClientException("Could not execute GET request", e);
        }
    }