|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.actuate.activeportal.beans.UserAgentBean
public class UserAgentBean
This bean detects what kind of browser the user use from http header "user-agent". After you instantiate this bean, you need to call setRequest(HttpServletRequest request). You can tell the browser type by calling isIE, isNS4 and isNS6 methods.
Constructor Summary | |
---|---|
UserAgentBean()
|
Method Summary | |
---|---|
java.lang.String |
getUseragent()
Returns the user agent string from http header. |
boolean |
isIE()
Returns whether the client browser is Internet Explorer |
boolean |
isNetEnabled()
Returns whether .NET extension is enabled in the client browser |
boolean |
isNS4()
Returns whether the client browser is Netscape 4.x |
boolean |
isNS6()
Returns whether the client browser is Netscape 6.x |
void |
setRequest(javax.servlet.http.HttpServletRequest request)
This function reads http header "User-Agent" and process the information. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserAgentBean()
Method Detail |
---|
public void setRequest(javax.servlet.http.HttpServletRequest request)
request
- public java.lang.String getUseragent()
public boolean isNetEnabled()
public boolean isIE()
public boolean isNS6()
public boolean isNS4()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |