Class CarbonUIMessage

    • Constructor Detail

      • CarbonUIMessage

        public CarbonUIMessage​(String message,
                               String messageType)
        TODO: Make this constructor private
      • CarbonUIMessage

        public CarbonUIMessage​(String message,
                               String messageType,
                               Exception exception)
        TODO: Make this constructor private
      • CarbonUIMessage

        public CarbonUIMessage​(String message,
                               String messageType,
                               Exception exception,
                               boolean showStackTrace)
        TODO: Make this constructor private
    • Method Detail

      • getMessageType

        public String getMessageType()
      • getMessage

        public String getMessage()
      • getException

        public Exception getException()
      • setException

        public void setException​(Exception exception)
      • isShowStackTrace

        public boolean isShowStackTrace()
      • setShowStackTrace

        public void setShowStackTrace​(boolean showStackTrace)
      • sendCarbonUIMessage

        public static void sendCarbonUIMessage​(String message,
                                               String messageType,
                                               javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               String urlToRedirect)
                                        throws IOException
        Creates CarbonUIMessage, set it to the session and redirect it to the given url
        Parameters:
        message - meesage to be displayed
        messageType - info, warning, error
        request -
        response -
        urlToRedirect -
        Throws:
        IOException
      • sendCarbonUIMessage

        public static CarbonUIMessage sendCarbonUIMessage​(String message,
                                                          String messageType,
                                                          javax.servlet.http.HttpServletRequest request,
                                                          javax.servlet.http.HttpServletResponse response,
                                                          String urlToRedirect,
                                                          Exception exception)
                                                   throws IOException
        Creates error CarbonUIMessage, set it to the session and redirect it to the given url with the exception object
        Parameters:
        message -
        messageType -
        request -
        response -
        urlToRedirect -
        exception -
        Returns:
        Throws:
        IOException
      • sendCarbonUIMessage

        public static void sendCarbonUIMessage​(String message,
                                               String messageType,
                                               javax.servlet.http.HttpServletRequest request)
        Creates CarbonUIMessage, set it to the session
        Parameters:
        message -
        messageType -
        request -
      • sendCarbonUIMessage

        public static void sendCarbonUIMessage​(String message,
                                               String messageType,
                                               javax.servlet.http.HttpServletRequest request,
                                               Exception exception)
        Creates error CarbonUIMessage, set it to the session
        Parameters:
        message -
        messageType -
        request -
        exception -