Search in sources :

Example 1 with BintrayResponse

use of org.jfrog.build.client.bintrayResponse.BintrayResponse in project build-info by JFrogDev.

the class ArtifactoryBuildInfoClient method parseResponse.

private BintrayResponse parseResponse(HttpResponse response) throws IOException {
    InputStream content = response.getEntity().getContent();
    int status = response.getStatusLine().getStatusCode();
    JsonParser parser = httpClient.createJsonFactory().createJsonParser(content);
    BintrayResponse responseObject = BintrayResponseFactory.createResponse(status, parser);
    return responseObject;
}
Also used : BintrayResponse(org.jfrog.build.client.bintrayResponse.BintrayResponse) InputStream(java.io.InputStream) JsonParser(com.fasterxml.jackson.core.JsonParser)

Aggregations

JsonParser (com.fasterxml.jackson.core.JsonParser)1 InputStream (java.io.InputStream)1 BintrayResponse (org.jfrog.build.client.bintrayResponse.BintrayResponse)1