|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.applications.vprowizards.spring.ResultContainer
public class ResultContainer
this class acts as a wrapper for everything that needs to be passed to all the actions that need execution for a request.
| Field Summary | |
|---|---|
(package private) HttpServletRequest |
request
|
(package private) HttpServletResponse |
response
|
| Constructor Summary | |
|---|---|
ResultContainer(HttpServletRequest request,
HttpServletResponse response,
Transaction transaction,
Locale locale)
|
|
| Method Summary | |
|---|---|
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()
|
HttpServletRequest |
getRequest()
|
HttpServletResponse |
getResponse()
|
Transaction |
getTransaction()
|
boolean |
hasFieldErrors()
|
boolean |
hasGlobalErrors()
|
void |
setRequest(HttpServletRequest request)
|
void |
setResponse(HttpServletResponse response)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
HttpServletRequest request
HttpServletResponse response
| Constructor Detail |
|---|
public ResultContainer(HttpServletRequest request,
HttpServletResponse response,
Transaction transaction,
Locale locale)
| Method Detail |
|---|
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 param
public 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 HttpServletRequest getRequest()
public void setRequest(HttpServletRequest request)
public HttpServletResponse getResponse()
public void setResponse(HttpServletResponse response)
public void addCacheFlushHint(CacheFlushHint hint)
public List<CacheFlushHint> getCacheFlushHints()
public Map<String,Node> getIdMap()
public Transaction getTransaction()
public Locale getLocale()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||