public class ResultContainer extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) javax.servlet.http.HttpServletRequest |
request |
(package private) javax.servlet.http.HttpServletResponse |
response |
| Constructor and Description |
|---|
ResultContainer(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Transaction transaction,
Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCacheFlushHint(CacheFlushHint hint) |
void |
addFieldError(FieldError e)
Add a field error to this request.
|
void |
addGlobalError(GlobalError e)
Add a global error to this request.
|
void |
addParamToReturnURL(String name,
Node node)
Add a parameter to the url the request is forwarded to.
|
void |
addParamToReturnURL(String name,
ParamValueResolver valueResolver)
Add a parameter to the url the request is forwarded to.
|
void |
addParamToReturnURL(String name,
String value)
Add a parameter to the url the request is forwarded to.
|
List<CacheFlushHint> |
getCacheFlushHints() |
Map<String,String> |
getExtraParams() |
List<FieldError> |
getFieldErrors() |
List<GlobalError> |
getGlobalErrors() |
Map<String,Node> |
getIdMap() |
Locale |
getLocale() |
javax.servlet.http.HttpServletRequest |
getRequest() |
javax.servlet.http.HttpServletResponse |
getResponse() |
Transaction |
getTransaction() |
boolean |
hasFieldErrors() |
boolean |
hasGlobalErrors() |
void |
setRequest(javax.servlet.http.HttpServletRequest request) |
void |
setResponse(javax.servlet.http.HttpServletResponse response) |
javax.servlet.http.HttpServletRequest request
javax.servlet.http.HttpServletResponse response
public ResultContainer(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Transaction transaction,
Locale locale)
public List<FieldError> getFieldErrors()
public List<GlobalError> getGlobalErrors()
public void addParamToReturnURL(String name, ParamValueResolver valueResolver)
ModelAndViewResolver.name - the name of the parametervalueResolver - public void addParamToReturnURL(String name, Node node)
ModelAndViewResolver.
Use this method if you want to add the number of a newly created node to the
request. This is done by the action class, but the node is only commited yet when the
action is executed. So we need the node to get the number after the transaction is committed.name - the name of the parameternode - the number of this node will be the value of the parampublic void addParamToReturnURL(String name, String value)
ModelAndViewResolver.name - the name of the parametervalue - the value for this new parameterpublic Map<String,String> getExtraParams()
public void addGlobalError(GlobalError e)
e - public void addFieldError(FieldError e)
e - public boolean hasFieldErrors()
public boolean hasGlobalErrors()
public javax.servlet.http.HttpServletRequest getRequest()
public void setRequest(javax.servlet.http.HttpServletRequest request)
public javax.servlet.http.HttpServletResponse getResponse()
public void setResponse(javax.servlet.http.HttpServletResponse response)
public void addCacheFlushHint(CacheFlushHint hint)
public List<CacheFlushHint> getCacheFlushHints()
public Transaction getTransaction()
public Locale getLocale()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}