Example usage for com.vaadin.shared.ui.ui Transport getIdentifier

List of usage examples for com.vaadin.shared.ui.ui Transport getIdentifier

Introduction

In this page you can find the example usage for com.vaadin.shared.ui.ui Transport getIdentifier.

Prototype

public String getIdentifier() 

Source Link

Usage

From source file:edu.nps.moves.mmowgli.AppMaster.java

License:Open Source License

private void tweekPushTransport() {
    String transportstr = getInitParameter(WEB_XML_PUSH_TRANSPORT_KEY);
    if (transportstr != null) {
        try {// w w  w.  j  av a 2  s  . c  o m
            PUSHTRANSPORT = Enum.valueOf(Transport.class, transportstr.toUpperCase());
        } catch (IllegalArgumentException ex) {
            for (Transport tr : Transport.values()) {
                if (tr.getIdentifier().equalsIgnoreCase(transportstr)) {
                    PUSHTRANSPORT = tr;
                    return;
                }
            }
            System.err.println("************Bad value for config-parameter 'transport'=" + transportstr
                    + "************************");
        }
    }
}