daily pastebin goal
43%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. RESTLET 2.1RC1 : ChallengeResponse send from GWT client to server always NULL
  2. ClientResource r = new ClientResource("/service" + UsersServiceProxy.URL);
  3.     r.setChallengeRespon​se(ChallengeScheme.H​TTP_BASIC, "user1", "secret");
  4.     r.setOnResponse(new Uniform() {
  5.         public void handle(Request request, Response response) {
  6.            .....
  7.         }
  8.     });
  9.     r.get();
  10.    
  11. UserServiceProxy userService = GWT.create(UserServiceProxy.class);
  12.     userService.getClientResource().setReference(url);
  13.     userService.getClientResource().setChallengeResponse(new ChallengeResponse(ChallengeScheme.HTTP_BASIC, "user1", "secret"));
  14.     userService.getUser(username + ":" + password, new Result<User>() {
  15.  
  16.         @Override
  17.         public void onFailure(Throwable caught) {
  18.                 ......
  19.         }
  20.  
  21.         @Override
  22.         public void onSuccess(User user) {
  23.             .....
  24.         }
  25.     });
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