|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wicket.Request wicket.protocol.http.WebRequest wicket.protocol.http.NullWebRequest
A placeholder WebRequest where all methods do nothing. This class is not accessible outside this package because it is intended to be used as a singleton. To gain access to a NullWebRequest instance, just access the static final field WebRequest.NULL.
WebRequest.NULL
Field Summary |
Fields inherited from class wicket.protocol.http.WebRequest |
NULL |
Constructor Summary | |
(package private) |
NullWebRequest()
Private constructor to force use of static factory method. |
Method Summary | |
java.lang.String |
getContextPath()
Gets the application context path. |
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()
|
java.lang.String |
getRelativeURL()
Gets the relative url (url without the context path and without a leading '/'). |
java.lang.String |
getServletPath()
Gets the servlet path. |
java.lang.String |
getURL()
Retrieves the URL of this request for local use. |
WebRequest |
newMultipartWebRequest(Bytes maxsize)
Create a runtime context type specific (e.g. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
NullWebRequest()
Method Detail |
public java.lang.String getContextPath()
WebRequest
getContextPath
in class WebRequest
WebRequest.getContextPath()
public java.lang.String getParameter(java.lang.String key)
WebRequest
getParameter
in class WebRequest
key
- Parameter name
Request.getParameter(java.lang.String)
public java.util.Map getParameterMap()
WebRequest
getParameterMap
in class WebRequest
Request.getParameterMap()
public java.lang.String[] getParameters(java.lang.String key)
WebRequest
getParameters
in class WebRequest
key
- Parameter name
Request.getParameters(java.lang.String)
public java.lang.String getPath()
getPath
in class Request
Request.getPath()
public java.lang.String getServletPath()
WebRequest
getServletPath
in class WebRequest
WebRequest.getServletPath()
public java.lang.String getURL()
WebRequest
getURL
in class WebRequest
Request.getURL()
public java.lang.String toString()
Object.toString()
public java.lang.String getRelativeURL()
WebRequest
getRelativeURL
in class WebRequest
WebRequest.getRelativeURL()
public WebRequest newMultipartWebRequest(Bytes maxsize)
WebRequest
newMultipartWebRequest
in class WebRequest
maxsize
- the maximum size this request may be
WebRequest.newMultipartWebRequest(wicket.util.lang.Bytes)
public java.util.Locale getLocale()
WebRequest
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 clientRequest.getLocale()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |