public abstract class WebTestModule extends Object
| Constructor and Description |
|---|
WebTestModule(WebMockObjectFactory mockFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRequestParameter(String key)
Adds an empty request parameter.
|
void |
addRequestParameter(String key,
String value)
Adds a request parameter.
|
void |
addRequestParameter(String key,
String[] values)
Adds several request parameters.
|
Object |
getRequestAttribute(String key)
Returns the request attribute for the specified key
|
String |
getRequestParameter(String key)
Returns the request parameter for the specified key
|
Object |
getSessionAttribute(String key)
Returns the session attribute for the specified key
|
void |
setRequestAttribute(String key,
Object value)
Sets the request attribute for the specified key
|
void |
setSessionAttribute(String key,
Object value)
Sets the session attribute for the specified key
|
public WebTestModule(WebMockObjectFactory mockFactory)
public void addRequestParameter(String key)
addRequestParameter(key, "").key - the request keypublic void addRequestParameter(String key, String value)
key - the request keyvalue - the request valuepublic void addRequestParameter(String key, String[] values)
key - thevalues - the request valuespublic String getRequestParameter(String key)
key - the request keypublic Object getRequestAttribute(String key)
key - the request keypublic void setRequestAttribute(String key, Object value)
key - the request keyvalue - the valuepublic Object getSessionAttribute(String key)
key - the session keyCopyright © 2003-2015. All Rights Reserved.