Package org.wso2.carbon.ui
Class CarbonUIMessage
java.lang.Object
org.wso2.carbon.ui.CarbonUIMessage
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCarbonUIMessage(String message, String messageType) TODO: Make this constructor privateCarbonUIMessage(String message, String messageType, Exception exception) TODO: Make this constructor privateCarbonUIMessage(String message, String messageType, Exception exception, boolean showStackTrace) TODO: Make this constructor private -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic voidsendCarbonUIMessage(String message, String messageType, javax.servlet.http.HttpServletRequest request) Creates CarbonUIMessage, set it to the sessionstatic voidsendCarbonUIMessage(String message, String messageType, javax.servlet.http.HttpServletRequest request, Exception exception) Creates error CarbonUIMessage, set it to the sessionstatic voidsendCarbonUIMessage(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 urlstatic CarbonUIMessagesendCarbonUIMessage(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 objectvoidsetException(Exception exception) voidsetShowStackTrace(boolean showStackTrace)
-
Field Details
-
ID
- See Also:
-
INFO
- See Also:
-
ERROR
- See Also:
-
WARNING
- See Also:
-
-
Constructor Details
-
Method Details
-
getMessageType
-
getMessage
-
getException
-
setException
-
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 displayedmessageType- info, warning, errorrequest-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-
-