|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.request.Request
org.apache.wicket.request.http.WebRequest
public abstract class WebRequest
Base class for request that provides additional web-related information.
Field Summary | |
---|---|
protected static String |
HEADER_AJAX
marker for Ajax requests |
protected static String |
HEADER_AJAX_BASE_URL
marker for Ajax-relative url |
protected static String |
PARAM_AJAX
marker for Ajax requests |
protected static String |
PARAM_AJAX_BASE_URL
marker for Ajax-relative url |
Constructor Summary | |
---|---|
WebRequest()
|
Method Summary | |
---|---|
WebRequest |
cloneWithUrl(Url url)
Returns request with specified URL and same POST parameters as this request. |
javax.servlet.http.Cookie |
getCookie(String cookieName)
|
abstract List<javax.servlet.http.Cookie> |
getCookies()
|
abstract long |
getDateHeader(String name)
Returns the value of the specified request header as a long value that
represents a Date object. |
abstract String |
getHeader(String name)
Returns the value of the specified request header as a String |
abstract List<String> |
getHeaders(String name)
Returns all the values of the specified request header. |
Date |
getIfModifiedSinceHeader()
Convenience method for retrieving If-Modified-Since header. |
boolean |
isAjax()
Returns whether this request is an Ajax request. |
Methods inherited from class org.apache.wicket.request.Request |
---|
getCharset, getClientUrl, getLocale, getOriginalUrl, getPostParameters, getPrefixToContextPath, getQueryParameters, getRequestParameters, getUrl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String PARAM_AJAX
protected static final String HEADER_AJAX
protected static final String PARAM_AJAX_BASE_URL
protected static final String HEADER_AJAX_BASE_URL
Constructor Detail |
---|
public WebRequest()
Method Detail |
---|
public abstract List<javax.servlet.http.Cookie> getCookies()
public javax.servlet.http.Cookie getCookie(String cookieName)
cookieName
-
null
if the cookie does not existpublic abstract List<String> getHeaders(String name)
name
-
public abstract String getHeader(String name)
String
name
-
public abstract long getDateHeader(String name)
long
value that
represents a Date
object. Use this method with headers that contain dates, such
as If-Modified-Since
.
name
-
public final Date getIfModifiedSinceHeader()
null
if not setpublic boolean isAjax()
true
if this request is an ajax request, false
otherwise.public WebRequest cloneWithUrl(Url url)
cloneWithUrl
in class Request
url
- Url instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |