Package org.geomajas.command

Examples of org.geomajas.command.EmptyCommandRequest


    List<Authentication> auths = new ArrayList<Authentication>();
    auths.add(auth);
    securityContext.setAuthentications(token, auths);

    Assert.assertEquals(token, securityContext.getToken());
    EmptyCommandRequest request = new EmptyCommandRequest();
    SuccessCommandResponse response = logoutCommand.getEmptyCommandResponse();
    logoutCommand.execute(request, response);
    Assert.assertTrue(response.isSuccess());
    Assert.assertNull(tokenService.getAuthentication(token));
  }
View Full Code Here


    layout.addMember(flow);

    final HTMLFlow copyrightWidget = new HTMLFlow("Copyright info");
    layout.addMember(copyrightWidget);
    GwtCommand commandRequest = new GwtCommand(CopyrightRequest.COMMAND);
    commandRequest.setCommandRequest(new EmptyCommandRequest());
    GwtCommandDispatcher.getInstance().execute(commandRequest, new CommandCallback() {

      public void execute(CommandResponse response) {
        if (response instanceof CopyrightResponse) {
          Collection<CopyrightInfo> copyrights = ((CopyrightResponse) response).getCopyrights();
View Full Code Here

    button.setLayoutAlign(Alignment.CENTER);
    button.addClickHandler(new ClickHandler() {

      public void onClick(ClickEvent event) {
        GwtCommand command = new GwtCommand("example.gwt.server.samples.GetExceptionCommand");
        command.setCommandRequest(new EmptyCommandRequest());
        GwtCommandDispatcher.getInstance().execute(command, new CommandCallback() {

          public void execute(CommandResponse response) {
            // Do nothing... an error message is shown automatically...
          }
View Full Code Here

TOP

Related Classes of org.geomajas.command.EmptyCommandRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.