|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itmill.toolkit.terminal.web.WebBrowserProbe
public class WebBrowserProbe
The WebBrowserProbe uses JavaScript to determine the
capabilities of the client browser.
| Constructor Summary | |
|---|---|
WebBrowserProbe()
|
|
| Method Summary | |
|---|---|
static WebBrowser |
getTerminalType(HttpSession session)
Returns the terminal type from the given session. |
static boolean |
handleProbeRequest(HttpServletRequest request,
Map parameters)
Handles the client checking. |
static WebBrowser |
probe(String agent)
Determines versions based on user agent string. |
static WebBrowser |
probe(WebBrowser browser,
HttpServletRequest request,
Map params)
Creates new instance of WebBrowser by initializing the values based on user request. |
static void |
setTerminalType(HttpSession session,
WebBrowser terminal)
Sets the terminal type for the given session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebBrowserProbe()
| Method Detail |
|---|
public static WebBrowser getTerminalType(HttpSession session)
session - the HTTP session.
public static void setTerminalType(HttpSession session,
WebBrowser terminal)
session - the HTTP session.terminal - the web browser.
public static boolean handleProbeRequest(HttpServletRequest request,
Map parameters)
throws ServletException
request - the HTTP request to process.parameters - the Parameters to be used as defaults.
true if response should include a probe
script,otherwise false.
ServletException - if an exception has occurred that interferes with the
servlet's normal operation.public static WebBrowser probe(String agent)
agent - the HTTP User-Agent request header.
public static WebBrowser probe(WebBrowser browser,
HttpServletRequest request,
Map params)
browser - the browser to be updated. If null a new instance is created.request - the Request to be used as defaults.params - the Parameters to be used as defaults.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||