/** * Force request a new user token. This is not used for extending the user token, that is handled automatically. */ public void login() { logout(true); login(RANDOM_UNLIKELY_TOKEN); }
@Override public void login() { GwtCommandDispatcher.getInstance().login(); }
/** * Method which forces retry of a command after login. * <p/> * This method assumes the single threaded nature of JavaScript execution for correctness. * * @param command * command which needs to be retried * @param deferred * callbacks for the command */ private void handleLogin(GwtCommand command, Deferred deferred) { final String oldToken = notNull(command.getUserToken()); if (!afterLoginCommands.containsKey(oldToken)) { afterLoginCommands.put(oldToken, new ArrayList<RetryCommand>()); login(oldToken); } afterLogin(command, deferred); }