Class SavedRequestManager.SavedRequest
- java.lang.Object
-
- org.xwiki.container.servlet.filters.SavedRequestManager.SavedRequest
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- SavedRequestManager
public static class SavedRequestManager.SavedRequest extends Object implements Serializable
Saved request data. Only request parameter are stored, along with the requested URL.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SavedRequest(javax.servlet.http.HttpServletRequest request)
Constructor that copies the needed information from a request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getParameter(String name)
Gets the value for a parameter, just likeServletRequest.getParameter(String)
.Map<String,String[]>
getParameterMap()
Gets all the stored parameters, just likeServletRequest.getParameterMap()
.String[]
getParameterValues(String name)
Gets all the values stored for a parameter, just likeServletRequest.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.
-
-
-
Method Detail
-
getParameter
public String getParameter(String name)
Gets the value for a parameter, just likeServletRequest.getParameter(String)
.- Parameters:
name
- the name of the parameter- Returns:
- The first value for this parameter, or
null
if no value was sent for this parameter. - See Also:
ServletRequest.getParameter(String)
,getParameterValues(String)
-
getParameterValues
public String[] getParameterValues(String name)
Gets all the values stored for a parameter, just likeServletRequest.getParameterValues(String)
.- Parameters:
name
- the name of the parameter- Returns:
- All the values for this parameter, or
null
if no value was sent for this parameter. - See Also:
ServletRequest.getParameterValues(String)
,getParameter(String)
-
getParameterMap
public Map<String,String[]> getParameterMap()
Gets all the stored parameters, just likeServletRequest.getParameterMap()
.- Returns:
- A map with all the stored parameters.
- See Also:
ServletRequest.getParameterMap()
-
getRequestUrl
public 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. Does not contain the query string.- Returns:
- A
String
representation of the URL corresponding to this request.
-
-