Class HtmlStatusResponseFactory


  • public final class HtmlStatusResponseFactory
    extends java.lang.Object
    Factory for creating status responses for html requests.
    • Method Detail

      • createStatusResponse

        public static HtmlResponse createStatusResponse​(boolean success,
                                                        java.lang.String message,
                                                        java.lang.String path)
        Create a html status response
        Parameters:
        success - true if action succeeded
        message - Action/error message
        path - path of the "modified" page
        Returns:
        the html response
      • createStatusResponse

        public static HtmlResponse createStatusResponse​(int status,
                                                        java.lang.String message,
                                                        java.lang.String path)
        Create a html status response
        Parameters:
        status - status code
        message - Action/error message
        path - path of the "modified" page
        Returns:
        the html response
      • createStatusResponse

        public static HtmlResponse createStatusResponse​(boolean success,
                                                        java.lang.String message)
        Create a html status response
        Parameters:
        success - true if action succeeded
        message - Action/error message
        Returns:
        the html response
      • createStatusResponse

        public static HtmlResponse createStatusResponse​(int status,
                                                        java.lang.String message)
        Create a html status response
        Parameters:
        status - http status code
        message - Action/error message
        Returns:
        the html response
      • createStatusResponse

        public static HtmlResponse createStatusResponse​(boolean success,
                                                        java.lang.String[] messages,
                                                        java.lang.String[] paths)
        Create a html status response
        Parameters:
        success - true if action succeeded
        messages - Action/error messages
        paths - paths of the "modified" page
        Returns:
        the html response