SHARE
TWEET

Untitled

a guest Dec 13th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top