private void afterLogin ( GwtCommand command , Deferred deferred ) { String token = notNull ( command . getUserToken ( ) ) ; if ( ! afterLoginCommands . containsKey ( token ) ) { afterLoginCommands . put ( token , new ArrayList < RetryCommand > ( ) ) ; } afterLoginCommands . get ( token ) . add ( new RetryCommand ( command , deferred ) ) ; }
Add a command and it s callbacks to the list of commands to retry after login .