public T post()

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


    public <T extends Document> T post(String url, HttpEntity entity) throws ClientException {
        try {
            URI absoluteUri = absoluteUri(url);
            LOG.info("POST " + absoluteUri);
            HttpPost post = new HttpPost(absoluteUri);
            post.setEntity(entity);
            HttpResponse response = this.execute(post);
            return newDocument(EntityUtils.toString(response.getEntity()));
        } catch (URISyntaxException e) {
            throw new ClientException("Invalid post url " + url, e);
        } catch (Exception e) {
            throw new ClientException("Could not execute POST request", e);
        }
    }