public static class SavedRequestManager.SavedRequest extends Object implements Serializable
Constructor and Description |
---|
SavedRequest(javax.servlet.http.HttpServletRequest request)
Constructor that copies the needed information from a request.
|
Modifier and Type | Method and Description |
---|---|
String |
getParameter(String name)
Gets the value for a parameter, just like
ServletRequest.getParameter(String) . |
Map<String,String[]> |
getParameterMap()
Gets all the stored parameters, just like
ServletRequest.getParameterMap() . |
String[] |
getParameterValues(String name)
Gets all the values stored for a parameter, just like
ServletRequest.getParameterValues(String) . |
String |
getRequestUrl()
Retrieves the original URL used for this request, as a future request will be able to reuse this data only if
it is for the same document.
|
public SavedRequest(javax.servlet.http.HttpServletRequest request)
request
- the request that needs to be savedpublic String getParameter(String name)
ServletRequest.getParameter(String)
.name
- the name of the parameternull
if no value was sent for this parameter.ServletRequest.getParameter(String)
,
getParameterValues(String)
public String[] getParameterValues(String name)
ServletRequest.getParameterValues(String)
.name
- the name of the parameternull
if no value was sent for this parameter.ServletRequest.getParameterValues(String)
,
getParameter(String)
public Map<String,String[]> getParameterMap()
ServletRequest.getParameterMap()
.ServletRequest.getParameterMap()
public String getRequestUrl()
String
representation of the URL corresponding to this request.Copyright © 2004–2021 XWiki. All rights reserved.