webwork.action.standard
Class ClientInfo
java.lang.Object
webwork.action.ActionSupport
webwork.action.standard.ClientInfo
- All Implemented Interfaces:
- Action, IllegalArgumentAware, java.io.Serializable, ServletRequestAware
- public class ClientInfo
- extends ActionSupport
- implements java.io.Serializable, ServletRequestAware
A utility class for extracting browser information from the client.
- Version:
- $Revision: 1.7 $
- Author:
- Henrik Mattsson (henrik.mattsson@sublime.se), Rickard Öberg (rickard@middleware-company.com)
- See Also:
- Serialized Form
Method Summary |
protected java.lang.String |
doExecute()
Set up properties
Currently supports the version format of the following browsers:
- Microsoft Internet Explorer
- Netscape
- Opera
- Lynx |
java.lang.String |
getBrowser()
|
float |
getVersion()
|
void |
setAccept(java.lang.String val)
|
void |
setServletRequest(javax.servlet.http.HttpServletRequest request)
|
void |
setUserAgent(java.lang.String val)
|
boolean |
supportsType(java.lang.String key)
Check whether or not the browser supports a certain type
of data. |
Methods inherited from class webwork.action.ActionSupport |
addError, addErrorMessage, addIllegalArgumentException, doDefault, doValidation, execute, getActionName, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getLocale, getPropertyEditorMessage, getText, getTexts, getTexts, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientInfo
public ClientInfo()
setUserAgent
public void setUserAgent(java.lang.String val)
setAccept
public void setAccept(java.lang.String val)
getBrowser
public java.lang.String getBrowser()
getVersion
public float getVersion()
supportsType
public boolean supportsType(java.lang.String key)
- Check whether or not the browser supports a certain type
of data. (jpeg/wbmp/etc)
setServletRequest
public void setServletRequest(javax.servlet.http.HttpServletRequest request)
- Specified by:
setServletRequest
in interface ServletRequestAware
doExecute
protected java.lang.String doExecute()
throws java.lang.Exception
- Set up properties
Currently supports the version format of the following browsers:
- Microsoft Internet Explorer
- Netscape
- Opera
- Lynx
- Overrides:
doExecute
in class ActionSupport
- Throws:
java.lang.Exception
Copyright © 2001-2003 WebWork All Rights Reserved.