|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.util.BrowserDetect
public class BrowserDetect
Various functions to do with working out what is at the other end of the wire, and what it can do.
Quick summary:
Quick summary:
For full information see the Safari and WebKit Version Information: at Apple Developer Connection and for browsers in general, see this fairly complete list of user agent strings.
| Constructor Summary | |
|---|---|
BrowserDetect()
|
|
| Method Summary | |
|---|---|
static boolean |
atLeast(javax.servlet.http.HttpServletRequest request,
UserAgent requiredUserAgent)
Check that the user-agent string indicates some minimum browser level |
static boolean |
atLeast(javax.servlet.http.HttpServletRequest request,
UserAgent requiredUserAgent,
int requiredVersion)
Check that the user-agent string indicates some minimum browser level |
static void |
debugBrowserVersions(javax.servlet.http.HttpServletRequest request)
Deprecated. This method is for debugging only |
static int |
getConnectionLimit(javax.servlet.http.HttpServletRequest request)
How many connections can this browser open simultaneously? |
static java.lang.String |
getUserAgentDebugString(javax.servlet.http.HttpServletRequest request)
This method is for debugging only |
static boolean |
supportsComet(javax.servlet.http.HttpServletRequest request)
Does this web browser support comet? |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BrowserDetect()
| Method Detail |
|---|
public static int getConnectionLimit(javax.servlet.http.HttpServletRequest request)
request - The request so we can get at the user-agent header
public static boolean supportsComet(javax.servlet.http.HttpServletRequest request)
request - The request so we can get at the user-agent header
public static boolean atLeast(javax.servlet.http.HttpServletRequest request,
UserAgent requiredUserAgent)
request - The browsers requestrequiredUserAgent - The UA required
public static boolean atLeast(javax.servlet.http.HttpServletRequest request,
UserAgent requiredUserAgent,
int requiredVersion)
request - The browsers requestrequiredUserAgent - The UA required. Currently this is major version onlyrequiredVersion - The version required, or -1 if versions are not important
public static java.lang.String getUserAgentDebugString(javax.servlet.http.HttpServletRequest request)
@Deprecated public static void debugBrowserVersions(javax.servlet.http.HttpServletRequest request)
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||