Package com.jalios.jcms.result
Class ResultList
- java.lang.Object
-
- com.jalios.jcms.result.ResultList
-
- All Implemented Interfaces:
java.io.Serializable
public class ResultList extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResultList()
ResultList(Result... results)
ResultList(ResultList... resultLists)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultList
addResult(Result result)
ResultList
addResults(ResultList resultList)
static ResultList
fail()
static ResultList
fail(java.lang.String message, java.lang.Object... params)
static ResultList
info(java.lang.String message, java.lang.Object... params)
boolean
isSuccess()
void
sendMessages(java.io.Writer out, java.lang.String lang)
Method to be called after adding results.void
sendMessages(java.io.Writer out, java.lang.String lang, ParamResolver resolver)
Method to be called after adding results.void
sendMessages(javax.servlet.http.HttpServletRequest request, java.lang.String lang)
Method to be called after adding results.void
sendMessages(javax.servlet.http.HttpServletRequest request, java.lang.String lang, ParamResolver resolver)
Method to be called after adding results.static ResultList
success()
static ResultList
success(java.lang.String message, java.lang.Object... params)
-
-
-
Constructor Detail
-
ResultList
public ResultList()
-
ResultList
public ResultList(ResultList... resultLists)
-
ResultList
public ResultList(Result... results)
-
-
Method Detail
-
success
public static ResultList success()
-
success
public static ResultList success(java.lang.String message, java.lang.Object... params)
-
fail
public static ResultList fail()
-
fail
public static ResultList fail(java.lang.String message, java.lang.Object... params)
-
info
public static ResultList info(java.lang.String message, java.lang.Object... params)
-
isSuccess
public boolean isSuccess()
-
addResult
public ResultList addResult(Result result)
-
addResults
public ResultList addResults(ResultList resultList)
-
sendMessages
public void sendMessages(javax.servlet.http.HttpServletRequest request, java.lang.String lang)
Method to be called after adding results.- Parameters:
request
-HttpServletRequest
lang
- current language
-
sendMessages
public void sendMessages(javax.servlet.http.HttpServletRequest request, java.lang.String lang, ParamResolver resolver)
Method to be called after adding results.- Parameters:
request
-HttpServletRequest
lang
- current languageresolver
- callback to resolve param values
-
sendMessages
public void sendMessages(java.io.Writer out, java.lang.String lang) throws java.io.IOException
Method to be called after adding results.- Parameters:
out
-Writer
lang
- current language- Throws:
java.io.IOException
-
sendMessages
public void sendMessages(java.io.Writer out, java.lang.String lang, ParamResolver resolver) throws java.io.IOException
Method to be called after adding results.- Parameters:
out
-Writer
lang
- current languageresolver
- callback to resolve param values- Throws:
java.io.IOException
-
-