|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.orchestra.conversation.ConversationMessager
org.apache.myfaces.orchestra.conversation.basic.LogConversationMessager
public class LogConversationMessager
Handle user-specific notifications about conversation anomalies, when we are running in a plain servlet environment (no JSF etc).
Unfortunately there is no standard way of displaying a message to a user in such an environment (except possibly throwing an exception, forcing the standard error page to be shown). This implementation therefore just logs the message to the standard server application log.
If you do not like the default behaviour then implement your own version of this class and configure your alternative as the standard "Conversation Messager" instead. See the documentation on interface ConversationMessager for details.
As required by the ConversationMessager interface, all methods on this class are thread-safe.
Constructor Summary | |
---|---|
LogConversationMessager()
|
Method Summary | |
---|---|
void |
setConversationException(Throwable t)
An exception happened, for example during invalidate action. |
void |
setConversationNotActive(String name)
Display message about a not active conversation (close before the redirect). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogConversationMessager()
Method Detail |
---|
public void setConversationException(Throwable t)
ConversationMessager
setConversationException
in class ConversationMessager
public void setConversationNotActive(String name)
ConversationMessager
setConversationNotActive
in class ConversationMessager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |