|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TestableRequest
An extended version of Request that allows the PageTester to control and override behavior,
effectively simulating the portions of Request that are provided normally by a servlet container.
| Method Summary | |
|---|---|
TestableRequest |
clear()
Clears the internal parameters map. |
TestableRequest |
loadParameter(String parameterName,
String parameterValue)
Loads a single parameter/value pair. |
TestableRequest |
overrideParameter(String parameterName,
String parameterValue)
Overrides a parameter to the specific value, regardless of how the parameter was previously set. |
TestableRequest |
setLocale(Locale locale)
Sets the locale requested by "the browser". |
TestableRequest |
setPath(String path)
Sets the path; the path should begin with a "/" character and contain everything from there to the start of query parameters (if any). |
| Methods inherited from interface org.apache.tapestry5.services.Request |
|---|
getAttribute, getContextPath, getDateHeader, getHeader, getHeaderNames, getLocale, getLocalPort, getMethod, getParameter, getParameterNames, getParameters, getPath, getRemoteHost, getServerName, getServerPort, getSession, isRequestedSessionIdValid, isSecure, isXHR, setAttribute |
| Method Detail |
|---|
TestableRequest clear()
TestableRequest setPath(String path)
path -
TestableRequest setLocale(Locale locale)
TestableRequest loadParameter(String parameterName,
String parameterValue)
TestableRequest overrideParameter(String parameterName,
String parameterValue)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||