|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.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 |
getRelativePathPrefixToContextRoot()
Gets a prefix to make this relative to the context root. |
abstract java.lang.String |
getRelativePathPrefixToWicketHandler()
Gets a prefix to make this relative to the Wicket Servlet/Filter. |
java.lang.String |
getRelativeURL()
Deprecated. Use getURL() instead. |
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 relative URL of this request for local use. |
boolean |
mergeVersion()
A request can say if the current request should generated a new version number. |
void |
setPage(Page page)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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 getRelativePathPrefixToContextRoot()
For example, if your context root is http://server.com/myApp/ and the request is for /myApp/mountedPage/, then the prefix returned might be "../../".
For a particular technology, this might return either an absolute prefix or a relative one.
public abstract java.lang.String getRelativePathPrefixToWicketHandler()
For example, if your context root is http://server.com/myApp/ and the request is for /myApp/mountedPage/, then the prefix returned might be "../../".
For a particular technology, this might return either an absolute prefix or a relative one.
public java.lang.String getRelativeURL()
getURL()
instead.
public final RequestParameters getRequestParameters()
IRequestCodingStrategy
of
the provided request cycle processor.
public abstract java.lang.String getURL()
public void setPage(Page page)
page
- The Page for this requestpublic boolean mergeVersion()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |