webwork.examples
Class HitUrl
java.lang.Object
webwork.action.ActionSupport
webwork.examples.HitUrl
- All Implemented Interfaces:
- Action, CommandDriven, IllegalArgumentAware, java.io.Serializable
- public class HitUrl
- extends ActionSupport
- implements CommandDriven
Load content from a given URL
- Version:
- $Revision: 1.4 $
- Author:
- Rickard Öberg (rickard@dreambean.com)
- See Also:
- Serialized Form
Methods inherited from class webwork.action.ActionSupport |
addError, addErrorMessage, addIllegalArgumentException, doDefault, 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 |
EXCEPTION
public static final int EXCEPTION
- See Also:
- Constant Field Values
NO_CONNECT
public static final int NO_CONNECT
- See Also:
- Constant Field Values
HitUrl
public HitUrl()
setUrl
public void setUrl(java.lang.String url)
getUrl
public java.lang.String getUrl()
getHistory
public java.util.List getHistory()
setCount
public void setCount(int count)
getCount
public int getCount()
setThreadCount
public void setThreadCount(int count)
getThreadCount
public int getThreadCount()
getSize
public int getSize()
getTotal
public long getTotal()
getAverageTime
public long getAverageTime()
getMeanTime
public long getMeanTime()
getFastestTime
public long getFastestTime()
getSlowestTime
public long getSlowestTime()
getNrOfErrors
public int getNrOfErrors()
getNrOfConnectErrors
public int getNrOfConnectErrors()
getTimes
public java.lang.Long[] getTimes()
doValidation
public void doValidation()
- Description copied from class:
ActionSupport
- Subclasses may override this method to provide validation
of input data. The execute() method should call validate()
in the beginning of its code (which will delegate to this method),
so as to check input data
before doing the actual processing.
If any application errors arise these should be registered
by calling addErrorMessage or addError .
If the validation is dependent on whether a command has been issued,
and what that command is, then the isCommand() method should be used.
- Overrides:
doValidation
in class ActionSupport
doExecute
public java.lang.String doExecute()
throws java.lang.Exception
- Overrides:
doExecute
in class ActionSupport
- Throws:
java.lang.Exception
Copyright © 2001-2003 WebWork All Rights Reserved.