org.xwiki.container.servlet.filters
Class SavedRequestManager.SavedRequest

java.lang.Object
  extended by 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
SavedRequestManager.SavedRequest(javax.servlet.http.HttpServletRequest request)
          Constructor that copies the needed information from a request.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SavedRequestManager.SavedRequest

public SavedRequestManager.SavedRequest(javax.servlet.http.HttpServletRequest request)
Constructor that copies the needed information from a request.

Parameters:
request - the request that needs to be saved
Method Detail

getParameter

public String getParameter(String name)
Gets the value for a parameter, just like ServletRequest.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 like ServletRequest.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 like ServletRequest.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.


Copyright © 2004-2013 XWiki. All Rights Reserved.