public class UnsupportedBrowserManager extends Object
Constructor and Description |
---|
UnsupportedBrowserManager(ApplicationProperties properties) |
Modifier and Type | Method and Description |
---|---|
UserAgentUtil.Browser |
getBrowser(javax.servlet.http.HttpServletRequest request) |
String |
getMessageKey(javax.servlet.http.HttpServletRequest request) |
String |
getMessageKey(UserAgentUtil.Browser browser) |
boolean |
isCheckEnabled() |
boolean |
isHandledCookiePresent(javax.servlet.http.HttpServletRequest request) |
boolean |
isUnsupportedBrowser(javax.servlet.http.HttpServletRequest request) |
boolean |
isUnsupportedBrowser(UserAgentUtil.Browser browser) |
public UnsupportedBrowserManager(ApplicationProperties properties)
public boolean isUnsupportedBrowser(UserAgentUtil.Browser browser)
browser
- The UserAgentUtil.Browser
that is to testedpublic boolean isUnsupportedBrowser(javax.servlet.http.HttpServletRequest request)
request
- The HttpServletRequest to extract the user agent frompublic String getMessageKey(UserAgentUtil.Browser browser)
browser
- The UserAgentUtil.Browser
public String getMessageKey(javax.servlet.http.HttpServletRequest request)
request
- The HttpServletRequest to extract the user agent frompublic boolean isCheckEnabled()
public boolean isHandledCookiePresent(javax.servlet.http.HttpServletRequest request)
request
- The HttpServletRequest to extract the cookie frompublic UserAgentUtil.Browser getBrowser(javax.servlet.http.HttpServletRequest request)
request
- The HttpServletRequest to extract the user agent fromUserAgentUtil.Browser
that is deduced from the user agent header in the requestCopyright © 2002-2023 Atlassian. All Rights Reserved.