public class CarbonUIMessage extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR |
static String |
ID |
static String |
INFO |
static String |
WARNING |
| Constructor and Description |
|---|
CarbonUIMessage(String message,
String messageType)
TODO: Make this constructor private
|
CarbonUIMessage(String message,
String messageType,
Exception exception)
TODO: Make this constructor private
|
CarbonUIMessage(String message,
String messageType,
Exception exception,
boolean showStackTrace)
TODO: Make this constructor private
|
| Modifier and Type | Method and Description |
|---|---|
Exception |
getException() |
String |
getMessage() |
String |
getMessageType() |
boolean |
isShowStackTrace() |
static void |
sendCarbonUIMessage(String message,
String messageType,
javax.servlet.http.HttpServletRequest request)
Creates CarbonUIMessage, set it to the session
|
static void |
sendCarbonUIMessage(String message,
String messageType,
javax.servlet.http.HttpServletRequest request,
Exception exception)
Creates error CarbonUIMessage, set it to the session
|
static void |
sendCarbonUIMessage(String message,
String messageType,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String urlToRedirect)
Creates CarbonUIMessage, set it to the session and redirect it to the given url
|
static CarbonUIMessage |
sendCarbonUIMessage(String message,
String messageType,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String urlToRedirect,
Exception exception)
Creates error CarbonUIMessage, set it to the session and redirect it to the given url with the exception object
|
void |
setException(Exception exception) |
void |
setShowStackTrace(boolean showStackTrace) |
public static final String ID
public static final String INFO
public static final String ERROR
public static final String WARNING
public CarbonUIMessage(String message, String messageType)
public CarbonUIMessage(String message, String messageType, Exception exception)
public String getMessageType()
public String getMessage()
public Exception getException()
public void setException(Exception exception)
public boolean isShowStackTrace()
public void setShowStackTrace(boolean showStackTrace)
public static void sendCarbonUIMessage(String message, String messageType, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String urlToRedirect) throws IOException
message - meesage to be displayedmessageType - info, warning, errorrequest - response - urlToRedirect - IOExceptionpublic static CarbonUIMessage sendCarbonUIMessage(String message, String messageType, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String urlToRedirect, Exception exception) throws IOException
message - messageType - request - response - urlToRedirect - exception - IOExceptionpublic static void sendCarbonUIMessage(String message, String messageType, javax.servlet.http.HttpServletRequest request)
message - messageType - request - Copyright © 2012-2015 The Apache Software Foundation. All Rights Reserved.