You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DeploymentConfigurationTest.java 689B

12345678910111213141516171819202122232425
  1. package com.vaadin.tests.application;
  2. import java.util.Properties;
  3. import com.vaadin.server.VaadinRequest;
  4. import com.vaadin.ui.Label;
  5. import com.vaadin.ui.UI;
  6. import com.vaadin.ui.VerticalLayout;
  7. public class DeploymentConfigurationTest extends UI {
  8. @Override
  9. protected void init(VaadinRequest request) {
  10. VerticalLayout layout = new VerticalLayout();
  11. layout.setMargin(true);
  12. setContent(layout);
  13. Properties params = getSession().getConfiguration().getInitParameters();
  14. for (Object key : params.keySet()) {
  15. layout.addComponent(new Label(key + ": "
  16. + params.getProperty((String) key)));
  17. }
  18. }
  19. }