|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 | |
---|---|
String |
decodeURL(String url)
An implementation of this method is only required if a subclass wishes to support sessions via URL rewriting. |
abstract Locale |
getLocale()
|
Page |
getPage()
|
abstract String |
getParameter(String key)
Gets a given (query) parameter by name. |
abstract Map<String,String[]> |
getParameterMap()
Gets a map of (query) parameters sent with the request. |
abstract String[] |
getParameters(String key)
Gets an array of multiple parameters by name. |
abstract String |
getPath()
|
abstract String |
getQueryString()
Returns the query string (part after ?) of this request. |
abstract String |
getRelativePathPrefixToContextRoot()
Gets a prefix to make this relative to the context root. |
abstract String |
getRelativePathPrefixToWicketHandler()
Gets a prefix to make this relative to the Wicket Servlet/Filter. |
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 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. |
void |
setRequestParameters(RequestParameters requestParameters)
Sets request parameters. |
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 String decodeURL(String url)
url
- The URL to decode
public abstract Locale getLocale()
public Page getPage()
public abstract String getParameter(String key)
key
- Parameter name
public abstract Map<String,String[]> getParameterMap()
public abstract String[] getParameters(String key)
key
- Parameter name
public abstract String getPath()
public abstract 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 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.
@Deprecated public String getRelativeURL()
getURL()
instead.
public final void setRequestParameters(RequestParameters requestParameters)
requestParameters
- public final RequestParameters getRequestParameters()
IRequestCodingStrategy
of
the provided request cycle processor.
public abstract String getURL()
public void setPage(Page page)
page
- The Page for this requestpublic boolean mergeVersion()
public String toString()
toString
in class Object
Object.toString()
public abstract String getQueryString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |