webwork.examples
Class HitUrl

java.lang.Object
  extended bywebwork.action.ActionSupport
      extended bywebwork.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

Field Summary
static int EXCEPTION
           
static int NO_CONNECT
           
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages, log
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
HitUrl()
           
 
Method Summary
 java.lang.String doExecute()
           
 void doValidation()
          Subclasses may override this method to provide validation of input data.
 long getAverageTime()
           
 int getCount()
           
 long getFastestTime()
           
 java.util.List getHistory()
           
 long getMeanTime()
           
 int getNrOfConnectErrors()
           
 int getNrOfErrors()
           
 int getSize()
           
 long getSlowestTime()
           
 int getThreadCount()
           
 java.lang.Long[] getTimes()
           
 long getTotal()
           
 java.lang.String getUrl()
           
 void setCount(int count)
           
 void setThreadCount(int count)
           
 void setUrl(java.lang.String url)
           
 
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
 
Methods inherited from interface webwork.action.CommandDriven
setCommand
 

Field Detail

EXCEPTION

public static final int EXCEPTION
See Also:
Constant Field Values

NO_CONNECT

public static final int NO_CONNECT
See Also:
Constant Field Values
Constructor Detail

HitUrl

public HitUrl()
Method Detail

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.