|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.Request
org.apache.wicket.protocol.http.WebRequest
org.apache.wicket.protocol.http.servlet.ServletWebRequest
public class ServletWebRequest
A Servlet specific WebRequest implementation wrapping a HttpServletRequest
Constructor Summary | |
---|---|
ServletWebRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
Protected constructor. |
Method Summary | |
---|---|
int |
getDepthRelativeToWicketHandler()
Gets the depth of this request relative to the Wicket handler. |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Gets the wrapped http servlet request object. |
java.util.Locale |
getLocale()
Returns the preferred Locale that the client will accept content in, based on
the Accept-Language header. |
java.lang.String |
getParameter(java.lang.String key)
Gets the request parameter with the given key. |
java.util.Map |
getParameterMap()
Gets the request parameters. |
java.lang.String[] |
getParameters(java.lang.String key)
Gets the request parameters with the given key. |
java.lang.String |
getPath()
Gets the path info if any. |
java.lang.String |
getQueryString()
Returns the query string (part after ?) of this request. |
java.lang.String |
getRelativePathPrefixToContextRoot()
Gets a prefix to make this relative to the context root. |
java.lang.String |
getRelativePathPrefixToWicketHandler()
Gets a prefix to make this relative to the Wicket Servlet/Filter. |
java.lang.String |
getServletPath()
Gets the servlet path. |
java.lang.String |
getURL()
Retrieves the relative URL of this request for local use. |
boolean |
isAjax()
This will return true if the header "Wicket-Ajax" is set. |
boolean |
mergeVersion()
This method by default calls isAjax(), wicket ajax request do have an header set. |
WebRequest |
newMultipartWebRequest(Bytes maxsize)
Create a runtime context type specific (e.g. |
void |
setAjax(boolean ajax)
THIS IS FOR WICKET INTERNAL USE ONLY. |
void |
setForceNewVersion(boolean forceNewVersion)
Allows to create new versions even on AJAX request. |
void |
setWicketRedirectUrl(java.lang.String wicketRedirectUrl)
Set the redirect url where wicket will redirect to for the next page |
java.lang.String |
toString()
|
Methods inherited from class org.apache.wicket.protocol.http.WebRequest |
---|
getCookie, getCookies |
Methods inherited from class org.apache.wicket.Request |
---|
decodeURL, getPage, getRelativeURL, getRequestParameters, setPage, setRequestParameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServletWebRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
httpServletRequest
- The servlet request informationMethod Detail |
---|
public final javax.servlet.http.HttpServletRequest getHttpServletRequest()
getHttpServletRequest
in class WebRequest
public java.util.Locale getLocale()
Locale
that the client will accept content in, based on
the Accept-Language header. If the client request doesn't provide an Accept-Language header,
this method returns the default locale for the server.
getLocale
in class WebRequest
Locale
for the clientpublic java.lang.String getParameter(java.lang.String key)
getParameter
in class WebRequest
key
- Parameter name
public java.util.Map getParameterMap()
getParameterMap
in class WebRequest
public java.lang.String[] getParameters(java.lang.String key)
getParameters
in class WebRequest
key
- Parameter name
public java.lang.String getPath()
getPath
in class Request
public java.lang.String getRelativePathPrefixToContextRoot()
Request
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.
getRelativePathPrefixToContextRoot
in class Request
Request.getRelativePathPrefixToContextRoot()
public int getDepthRelativeToWicketHandler()
public java.lang.String getRelativePathPrefixToWicketHandler()
Request
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.
getRelativePathPrefixToWicketHandler
in class Request
Request.getRelativePathPrefixToWicketHandler()
public java.lang.String getURL()
Request
getURL
in class Request
Request.getURL()
public java.lang.String getServletPath()
getServletPath
in class WebRequest
public final boolean isAjax()
isAjax
in class WebRequest
WebRequest.isAjax()
public final void setAjax(boolean ajax)
ajax
- ajaxpublic boolean mergeVersion()
mergeVersion
in class Request
Request.mergeVersion()
public void setForceNewVersion(boolean forceNewVersion)
forceNewVersion
- public WebRequest newMultipartWebRequest(Bytes maxsize)
WebRequest
newMultipartWebRequest
in class WebRequest
maxsize
- the maximum size this request may be
WebRequest.newMultipartWebRequest(org.apache.wicket.util.lang.Bytes)
public void setWicketRedirectUrl(java.lang.String wicketRedirectUrl)
wicketRedirectUrl
- public java.lang.String getQueryString()
Request
getQueryString
in class Request
Request.getQueryString()
public java.lang.String toString()
toString
in class Request
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |