public class ResultList
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ResultList() |
ResultList(Result... results) |
ResultList(ResultList... resultLists) |
Modifier and Type | Method and 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(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.
|
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.
|
static ResultList |
success() |
static ResultList |
success(java.lang.String message,
java.lang.Object... params) |
public ResultList()
public ResultList(ResultList... resultLists)
public ResultList(Result... results)
public static ResultList success()
public static ResultList success(java.lang.String message, java.lang.Object... params)
public static ResultList fail()
public static ResultList fail(java.lang.String message, java.lang.Object... params)
public static ResultList info(java.lang.String message, java.lang.Object... params)
public boolean isSuccess()
public ResultList addResult(Result result)
public ResultList addResults(ResultList resultList)
public void sendMessages(javax.servlet.http.HttpServletRequest request, java.lang.String lang)
request
- HttpServletRequest
lang
- current languagepublic void sendMessages(javax.servlet.http.HttpServletRequest request, java.lang.String lang, ParamResolver resolver)
request
- HttpServletRequest
lang
- current languageresolver
- callback to resolve param valuespublic void sendMessages(java.io.Writer out, java.lang.String lang) throws java.io.IOException
out
- Writer
lang
- current languagejava.io.IOException
public void sendMessages(java.io.Writer out, java.lang.String lang, ParamResolver resolver) throws java.io.IOException
out
- Writer
lang
- current languageresolver
- callback to resolve param valuesjava.io.IOException
Copyright © 2001-2018 Jalios SA. All Rights Reserved.