Class WebBrowserProbe

The WebBrowserProbe uses JavaScript to determine the capabilities of the client browser.

Synopsis

Since

3.0

Inheritance Path.  java.lang.Object-> com.itmill.toolkit.terminal.web.WebBrowserProbe

getTerminalType(HttpSession)

Parameters

return

WebBrowser instance for the given session.

Return the terminal type from the given session.

handleProbeRequest(HttpServletRequest, Map)

Parameters

request

The HTTP request to process.

response

HTTP response to write to.

return

true if response should include a probe script

Handle client checking.

probe(String)

Parameters

agent

HTTP User-Agent request header.

return

new WebBrowser instance initialized based on agent features.

Determine versions based on user agent string.

probe(WebBrowser, HttpServletRequest, Map)

Parameters

browser

The browser to be updated. If null a new instance is created.

request

Request to be used as defaults.

params

Parameters to be used as defaults.

return

new WebBrowser instance initialized based on request parameters.

Create new instance of WebBrowser by initializing the values based on user request.

setTerminalType(HttpSession, WebBrowser)

Parameters

return

WebBrowser instance for the given session.

Set the terminal type for the given session.