|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wicket.Request
public abstract class Request
Base class for page request implementations allowing access to request parameters. A Request has a URL and a parameter map. You can retrieve the URL of the request with getURL(). The entire parameter map can be retrieved via getParameterMap(). Individual parameters can be retrieved via getParameter(String). If multiple values are available for a given parameter, they can be retrieved via getParameters(String).
Constructor Summary | |
---|---|
Request()
Construct. |
Method Summary | |
---|---|
java.lang.String |
decodeURL(java.lang.String url)
An implementation of this method is only required if a subclass wishes to support sessions via URL rewriting. |
abstract java.util.Locale |
getLocale()
|
Page |
getPage()
|
abstract java.lang.String |
getParameter(java.lang.String key)
Gets a given (query) parameter by name. |
abstract java.util.Map |
getParameterMap()
Gets a map of (query) parameters sent with the request. |
abstract java.lang.String[] |
getParameters(java.lang.String key)
Gets an array of multiple parameters by name. |
abstract java.lang.String |
getPath()
|
abstract java.lang.String |
getRelativeURL()
Gets the relative (to some root) url (e.g. |
RequestParameters |
getRequestParameters()
Gets the request parameters object using the instance of IRequestCodingStrategy of the provided request cycle processor. |
abstract java.lang.String |
getURL()
Retrieves the absolute URL of this request for local use. |
void |
setPage(Page page)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Request()
Method Detail |
---|
public java.lang.String decodeURL(java.lang.String url)
url
- The URL to decode
public abstract java.util.Locale getLocale()
public Page getPage()
public abstract java.lang.String getParameter(java.lang.String key)
key
- Parameter name
public abstract java.util.Map getParameterMap()
public abstract java.lang.String[] getParameters(java.lang.String key)
key
- Parameter name
public abstract java.lang.String getPath()
public abstract java.lang.String getRelativeURL()
public abstract java.lang.String getURL()
public void setPage(Page page)
page
- The Page for this requestpublic final RequestParameters getRequestParameters()
IRequestCodingStrategy
of the provided request cycle processor.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |