Guest User

Untitled

a guest
Dec 13th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. try {
  2. MultivaluedMap<String, Object> head = new MultivaluedHashMap<String, Object>();
  3. head.add("Gtw-Transaction-Id", this.jobExecutionContext.getGtwTransactionId());
  4. head.add("Gtw-Sec-User-Token", this.jobExecutionContext.getLoginToken());
  5. head.add("Content-Type", "application/json");
  6.  
  7. response = this.restClient.target(new URI(this.endpoint + resource))
  8. .request()
  9. .headers(head)
  10. .get();
  11.  
  12. } catch (Exception ex) {
  13. response = null;
  14. }
Add Comment
Please, Sign In to add comment