| java.lang.Object com.mockrunner.base.WebTestModule
All known Subclasses: com.mockrunner.base.HTMLOutputModule,
WebTestModule | abstract public class WebTestModule (Code) | | This class provides some convenience methods for
request and session attribute handling
|
addRequestParameter | public void addRequestParameter(String key)(Code) | | Adds an empty request parameter. Same as
addRequestParameter(key, "") .
Parameters: key - the request key |
addRequestParameter | public void addRequestParameter(String key, String value)(Code) | | Adds a request parameter.
Parameters: key - the request key Parameters: value - the request value |
addRequestParameter | public void addRequestParameter(String key, String[] values)(Code) | | Adds several request parameters.
Parameters: key - the Parameters: values - the request values |
getRequestAttribute | public Object getRequestAttribute(String key)(Code) | | Returns the request attribute for the specified key
Parameters: key - the request key the attribute |
getRequestParameter | public String getRequestParameter(String key)(Code) | | Returns the request parameter for the specified key
Parameters: key - the request key the parameter |
getSessionAttribute | public Object getSessionAttribute(String key)(Code) | | Returns the session attribute for the specified key
Parameters: key - the session key the attribute |
setRequestAttribute | public void setRequestAttribute(String key, Object value)(Code) | | Sets the request attribute for the specified key
Parameters: key - the request key Parameters: value - the value |
setSessionAttribute | public void setSessionAttribute(String key, Object value)(Code) | | Sets the session attribute for the specified key
Parameters: key - the session key Parameters: value - the value |
|
|