Skip to content
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.

Commit

Permalink
adding wrapper for body().string()
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Kerwin committed Dec 10, 2017
1 parent 37c660c commit 0b0393a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parent>

<artifactId>hub-common-rest</artifactId>
<version>3.2.1-SNAPSHOT</version>
<version>3.3.0</version>

<name>Hub Common Rest</name>
<description>General Code for Rest Connections to the Hub</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,14 @@ public Response createResponse(final Request request) throws IntegrationExceptio
return handleExecuteClientCall(request);
}

public String readResponseString(final Response response) throws IntegrationException {
try {
return response.body().string();
} catch (final IOException e) {
throw new IntegrationException(e);
}
}

@Deprecated
/**
* @deprecated Please use createResponse(Request request) instead.
Expand Down

0 comments on commit 0b0393a

Please sign in to comment.