|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.request.Request
org.apache.wicket.request.http.WebRequest
org.apache.wicket.mock.MockWebRequest
public class MockWebRequest
Mutable mock WebRequest.
| Field Summary |
|---|
| Fields inherited from class org.apache.wicket.request.http.WebRequest |
|---|
HEADER_AJAX, HEADER_AJAX_BASE_URL, PARAM_AJAX, PARAM_AJAX_BASE_URL, PARAM_AJAX_REQUEST_ANTI_CACHE |
| Constructor Summary | |
|---|---|
MockWebRequest(Url url)
Construct. |
|
MockWebRequest(Url url,
String contextPath,
String filterPath,
String prefixToContextPath)
Construct. |
|
| Method Summary | |
|---|---|
void |
addCookie(javax.servlet.http.Cookie cookie)
|
void |
addDateHeader(String name,
Time value)
Adds date header for given name. |
void |
addHeader(String name,
String value)
Adds header for given name. |
MockWebRequest |
cloneWithUrl(Url url)
|
Charset |
getCharset()
|
Url |
getClientUrl()
|
Object |
getContainerRequest()
|
String |
getContextPath()
|
List<javax.servlet.http.Cookie> |
getCookies()
|
Time |
getDateHeader(String name)
|
String |
getFilterPath()
|
String |
getHeader(String name)
|
List<String> |
getHeaders(String name)
|
Locale |
getLocale()
|
MockRequestParameters |
getPostParameters()
|
String |
getPrefixToContextPath()
|
Url |
getUrl()
|
void |
removeHeader(String header)
Removes header with specified name. |
MockWebRequest |
setContextPath(String contextPath)
|
void |
setCookies(List<javax.servlet.http.Cookie> cookies)
Sets cookies for current request. |
void |
setDateHeader(String name,
Time value)
Sets date header for given name. |
MockWebRequest |
setFilterPath(String filterPath)
|
void |
setHeader(String name,
String value)
Sets header for given name. |
void |
setLocale(Locale locale)
Sets request locale. |
MockWebRequest |
setPrefixToContextPath(String prefixToContextPath)
|
void |
setUrl(Url url)
|
String |
toString()
|
| Methods inherited from class org.apache.wicket.request.http.WebRequest |
|---|
getCookie, getIfModifiedSinceHeader, isAjax, shouldPreserveClientUrl |
| Methods inherited from class org.apache.wicket.request.Request |
|---|
getOriginalUrl, getQueryParameters, getRequestParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MockWebRequest(Url url)
url -
public MockWebRequest(Url url,
String contextPath,
String filterPath,
String prefixToContextPath)
url - contextPath - filterPath - prefixToContextPath - | Method Detail |
|---|
public MockWebRequest cloneWithUrl(Url url)
cloneWithUrl in class WebRequestpublic void setUrl(Url url)
url - public Url getUrl()
getUrl in class Requestpublic String toString()
toString in class Objectpublic void setCookies(List<javax.servlet.http.Cookie> cookies)
cookies - public void addCookie(javax.servlet.http.Cookie cookie)
cookie - public List<javax.servlet.http.Cookie> getCookies()
getCookies in class WebRequestpublic Time getDateHeader(String name)
getDateHeader in class WebRequest
public void setDateHeader(String name,
Time value)
name - value -
public void addDateHeader(String name,
Time value)
name - value - public String getHeader(String name)
getHeader in class WebRequest
public void setHeader(String name,
String value)
name - value -
public void addHeader(String name,
String value)
name - value - public void setLocale(Locale locale)
locale - public Locale getLocale()
getLocale in class Requestpublic List<String> getHeaders(String name)
getHeaders in class WebRequestpublic void removeHeader(String header)
header - public MockRequestParameters getPostParameters()
getPostParameters in class Requestpublic Charset getCharset()
getCharset in class Requestpublic Url getClientUrl()
getClientUrl in class Requestpublic Object getContainerRequest()
getContainerRequest in class Requestpublic String getContextPath()
getContextPath in class Requestpublic MockWebRequest setContextPath(String contextPath)
contextPath -
public String getFilterPath()
getFilterPath in class Requestpublic MockWebRequest setFilterPath(String filterPath)
filterPath -
public String getPrefixToContextPath()
getPrefixToContextPath in class Requestpublic MockWebRequest setPrefixToContextPath(String prefixToContextPath)
prefixToContextPath -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||