daily pastebin goal
22%
SHARE
TWEET

Untitled

a guest Dec 6th, 2016 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. >Client client = Client.create();
  2. >WebResource webResource =
  3. > client.resource("http://SRVR:port/analytics/saw.dll?Dashboard&NQUser=Admin&NQPassword=AdminPasswd&Impersonate=impersonateUser");
  4. >           ClientResponse response =
  5. > webResource.accept("application/json").get(ClientResponse.class);
  6. >           System.out.println(response.getStatus());
  7. >           System.out.println(ClientResponse.Status.fromStatusCode(response.getStatus()));
  8. >           String output = response.getEntity(String.class);
  9. >               System.out.println("Output from Server .... n");
  10. >               System.out.println(output);
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