|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.davesag.jsf.AbstractContextAwareBean
com.davesag.jsf.UserAgent
The UserAgent managed bean provides information on the user's browser.
| Field Summary | |
static String |
IE
ie means Internet Exploiter. |
static String |
LINUX
linux implies any linux version. |
static String |
MAC
mac implies Mac OS X. |
static String |
MOZILLA
mozilla implies all manney of netscapes and other browsers that use the gecko rendering engine. |
static String |
SAFARI
safari implies all browsers using the KHTML rendering engine. |
static String |
UNSUPPORTED
unsupported implies we don't support that browser or os. |
static String |
WINDOWS
windows implies any windows version. |
| Constructor Summary | |
UserAgent()
default constructor |
|
| Method Summary | |
String |
getShortName()
Get the lowercase short hand name for this browser. |
String |
getShortOSName()
Get the lowercase short hand name for this operating system. |
boolean |
isIe()
is the browser IE? |
boolean |
isLinux()
is the user running linux? |
boolean |
isMac()
is the user running mac os? |
boolean |
isMozilla()
is the browser Mozilla or Netscape? |
boolean |
isSafari()
is the browser Safari? |
boolean |
isWindows()
is the user running windows? |
| Methods inherited from class com.davesag.jsf.AbstractContextAwareBean |
addMessage, getContext, getMessageBundleName, getRequestParameter, getServletContext, getSession |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String MOZILLA
public static final String SAFARI
public static final String IE
public static final String MAC
public static final String WINDOWS
public static final String LINUX
public static final String UNSUPPORTED
| Constructor Detail |
public UserAgent()
| Method Detail |
public String getShortName()
public String getShortOSName()
public boolean isIe()
public boolean isMozilla()
public boolean isSafari()
public boolean isWindows()
public boolean isMac()
public boolean isLinux()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||