summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/src/com/vaadin/shared/ui/ui/Transport.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/ui/ui/Transport.java b/shared/src/com/vaadin/shared/ui/ui/Transport.java
index 6eafba185e..39174caddf 100644
--- a/shared/src/com/vaadin/shared/ui/ui/Transport.java
+++ b/shared/src/com/vaadin/shared/ui/ui/Transport.java
@@ -46,4 +46,12 @@ public enum Transport {
return identifier;
}
+ public static Transport getByIdentifier(String identifier) {
+ for (Transport t : values()) {
+ if (t.getIdentifier().equals(identifier)) {
+ return t;
+ }
+ }
+ return null;
+ }
}