aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/application/DeploymentConfigurationTest.java
blob: 9c89254bd77d4db4e2316c86a1a8e87e11d0e179 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.vaadin.tests.application;

import java.util.Properties;

import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI;

public class DeploymentConfigurationTest extends UI {

    @Override
    protected void init(VaadinRequest request) {
        Properties params = getSession().getConfiguration().getInitParameters();

        for (Object key : params.keySet()) {
            addComponent(new Label(key + ": "
                    + params.getProperty((String) key)));
        }
    }
}