org.jwarp.service.web
Interface IMutableRequest
- All Known Implementing Classes:
- MutableRequest
- public interface IMutableRequest
Interface to extend the HttpServletRequest with the ability to set new parameters
or to overwrite existing parameters with new values
- Version:
- 1.0
- Author:
- Anatole Tresch
|
Method Summary |
void |
putParameter(java.lang.String key,
java.lang.String object)
Set a value as parameter. |
java.lang.String |
removeParameter(java.lang.String key)
Removes a parameter. |
void |
setSession(javax.servlet.http.HttpSession session)
Sets a new HttpSession for ths request |
putParameter
public void putParameter(java.lang.String key,
java.lang.String object)
- Set a value as parameter. If the parameter exists already it will be overwritten.
- Parameters:
key - Name of the parameter to set
removeParameter
public java.lang.String removeParameter(java.lang.String key)
- Removes a parameter.
- Parameters:
key - Name of the parameter to set
setSession
public void setSession(javax.servlet.http.HttpSession session)
- Sets a new HttpSession for ths request
- Parameters:
session - New HttpSession