public interface UserAgentInspector extends Serializable
user-agent and
accept request headers.| Modifier and Type | Method and Description |
|---|---|
static UserAgentInspector |
create(String userAgentHeader,
String httpAcceptHeader)
Build a UserAgentInspector instance using given header values
|
static UserAgentInspector |
create(com.vaadin.flow.server.VaadinRequest request)
Build a UserAgentInspector instance using a
VaadinRequest |
String |
getAcceptHeader()
Return the Accept header
|
String |
getUserAgentHeader()
Return the User-Agent header
|
boolean |
isAndroid()
Android check
|
boolean |
isAndroidPhone()
Android phone check
|
boolean |
isAndroidTablet()
Android tablet check
|
boolean |
isGameConsole()
Game console check
|
boolean |
isIOs()
iOS check
|
boolean |
isIPad()
iPad check
|
boolean |
isIPhone()
iPhone check
|
boolean |
isIPod()
iPod check
|
boolean |
isKindle()
Kindle check
|
boolean |
isMobile()
Mobile device check
|
boolean |
isNintendo()
Nintendo check
|
boolean |
isPlaystation()
PlayStation check
|
boolean |
isSmartphone()
Smartphone check
|
boolean |
isTablet()
Tablet check
|
boolean |
isWebKit()
WebKit check
|
boolean |
isWindowsPhone()
Windows phone check
|
boolean |
isXbox()
Xbox check
|
String getUserAgentHeader()
String getAcceptHeader()
boolean isWebKit()
boolean isIPhone()
boolean isIPad()
boolean isIPod()
boolean isIOs()
boolean isAndroid()
boolean isAndroidPhone()
boolean isAndroidTablet()
boolean isWindowsPhone()
boolean isKindle()
boolean isPlaystation()
boolean isNintendo()
boolean isXbox()
boolean isGameConsole()
boolean isSmartphone()
boolean isTablet()
boolean isMobile()
static UserAgentInspector create(String userAgentHeader, String httpAcceptHeader)
userAgentHeader - the User-Agent headerhttpAcceptHeader - the Accept headerUserAgentInspectorstatic UserAgentInspector create(com.vaadin.flow.server.VaadinRequest request)
VaadinRequestrequest - Vaadin requestUserAgentInspectorCopyright © 2019 The Holon Platform. All rights reserved.