Package org.geomajas.command.dto

Examples of org.geomajas.command.dto.RefreshConfigurationResponse


    Assert.assertEquals("", recorder.matches("test", "postConstruct"));
    recorder.clear();

    RefreshConfigurationRequest request = new RefreshConfigurationRequest();
    request.setConfigLocations(new String[] {});
    RefreshConfigurationResponse response = (RefreshConfigurationResponse) dispatcher.execute(
        RefreshConfigurationRequest.COMMAND, request, null, "en");
    /* @todo test commented because test runner does not build a ReconfigurableApplicationContext
    if (response.isError()) {
      response.getErrors().get(0).printStackTrace();
    }
View Full Code Here


              GwtCommand command = new GwtCommand(RefreshConfigurationRequest.COMMAND);
              command.setCommandRequest(request);
              GwtCommandDispatcher.getInstance().execute(command, new CommandCallback() {

                public void execute(CommandResponse response) {
                  RefreshConfigurationResponse r = (RefreshConfigurationResponse) response;
                  String message = "Reloaded applications : ";
                  List<String> names = Arrays.asList(r.getApplicationNames());
                  for (Iterator<String> it = names.iterator(); it.hasNext();) {
                    message += it.next();
                    if (it.hasNext()) {
                      message += ",";
                    }
View Full Code Here

      throw new GeomajasException(ExceptionCode.REFRESH_CONFIGURATION_FAILED);
    }
  }

  public RefreshConfigurationResponse getEmptyCommandResponse() {
    return new RefreshConfigurationResponse();
  }
View Full Code Here

TOP

Related Classes of org.geomajas.command.dto.RefreshConfigurationResponse

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.