Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- MultivaluedMap<String, Object> head = new MultivaluedHashMap<String, Object>();
- head.add("Gtw-Transaction-Id", this.jobExecutionContext.getGtwTransactionId());
- head.add("Gtw-Sec-User-Token", this.jobExecutionContext.getLoginToken());
- head.add("Content-Type", "application/json");
- response = this.restClient.target(new URI(this.endpoint + resource))
- .request()
- .headers(head)
- .get();
- } catch (Exception ex) {
- response = null;
- }
Add Comment
Please, Sign In to add comment