Class ResultList

  • All Implemented Interfaces:
    java.io.Serializable

    public class ResultList
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • ResultList

        public ResultList()
      • ResultList

        public ResultList​(ResultList... resultLists)
      • ResultList

        public ResultList​(Result... results)
    • Method Detail

      • success

        public static ResultList success​(java.lang.String message,
                                         java.lang.Object... params)
      • 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()
      • 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 language
        resolver - 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 language
        resolver - callback to resolve param values
        Throws:
        java.io.IOException