public class SavedRequest extends Object
This class is a representation of the state of a previous HttpServletRequest
instance.
Constructor and Description |
---|
SavedRequest(HttpServletRequest request)
Create a new instance copying the state from the request passed as argument.
|
Modifier and Type | Method and Description |
---|---|
String |
getContextPath()
Returns the original context path used by the original request.
|
List<Cookie> |
getCookies()
Returns the cookies copied from the original request.
|
Map<String,String> |
getHeaders()
Returns the headers copied from the original request.
|
String |
getMethod()
Returns the original HTTP method used by the original request.
|
Map<String,String[]> |
getParameters()
Returns the parameters copied from the original request.
|
String |
getQueryString()
Returns the querystring used by the original request.
|
String |
getRequestURI()
Returns the requestURI used by the original request.
|
String |
getScheme()
Returns the original scheme used by the original request.
|
public SavedRequest(HttpServletRequest request)
Create a new instance copying the state from the request passed as argument.
public Map<String,String[]> getParameters()
Returns the parameters copied from the original request.
public Map<String,String> getHeaders()
Returns the headers copied from the original request.
public List<Cookie> getCookies()
Returns the cookies copied from the original request.
public String getMethod()
Returns the original HTTP method used by the original request.
public String getQueryString()
Returns the querystring used by the original request.
public String getRequestURI()
Returns the requestURI used by the original request.
public String getScheme()
Returns the original scheme used by the original request.
public String getContextPath()
Returns the original context path used by the original request.
Copyright © 2013. All Rights Reserved.