Class Overview
Contains a map of unsupported browsers and error message keys. It also provides helper methods to access and manipulate this map.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
Public Methods
public
UserAgentUtil.Browser
getBrowser
(HttpServletRequest request)
Parameters
request
| The HttpServletRequest to extract the user agent from |
public
String
getMessageKey
(HttpServletRequest request)
Parameters
request
| The HttpServletRequest to extract the user agent from |
Returns
- the message key stored in the map for the browser retrieved from the user agent in the current request, null
if the client browser is supported
Returns
- the message key stored in the map for a specific unsupported browser, null if the browser is supported
public
boolean
isCheckEnabled
()
Returns
- true if the jira.browser.unsupported.warnings.disabled property is false
public
boolean
isHandledCookiePresent
(HttpServletRequest request)
Parameters
request
| The HttpServletRequest to extract the cookie from |
Returns
- whether the client has saved an UNSUPPORTED_BROWSER_WARNING cookie in the current request headers
public
boolean
isUnsupportedBrowser
(HttpServletRequest request)
Parameters
request
| The HttpServletRequest to extract the user agent from |
Returns
- whether the browser retrieved from the user agent in the current request is unsupported
public
boolean
isUnsupportedBrowser
(UserAgentUtil.Browser browser)
Returns
- Whether the browser is unsupported