diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/src/main/java/com/vaadin/server/WebBrowser.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/server/WebBrowser.java b/server/src/main/java/com/vaadin/server/WebBrowser.java index 0a5e6f2dc4..6622a0e90f 100644 --- a/server/src/main/java/com/vaadin/server/WebBrowser.java +++ b/server/src/main/java/com/vaadin/server/WebBrowser.java @@ -247,6 +247,20 @@ public class WebBrowser implements Serializable { } /** + * Gets the complete browser version as string. The version is given by the + * browser through the user agent string and usually consists of + * dot-separated numbers. Note that the string may contain characters other + * than dots and digits. + * + * @return the complete browser version or {@code null} if unknown + * @since + */ + public String getBrowserVersion() { + return browserDetails != null ? browserDetails.getBrowserVersion() + : null; + } + + /** * Tests whether the user is using Linux. * * @return true if the user is using Linux, false if the user is not using |