|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.apptemplate.filtering.impl.configuration.FilterChainNotificationHandler
public class FilterChainNotificationHandler
Implements MessageFilter
to decide whether message should be logged
or not upon internal message filter chain. Instance of this class should be
assigned to the protocol object using
FilterConfigurationHelper.bind()
helper.
Implements Action
to receive notifications from Configuration
Server. Creates, deletes or reconfigures message filters in a filter chain
upon received notifications.
Implements ChannelListener
. Handles
channel closed event to discard filter context (clears variables, etc.)
Constructor Summary | |
---|---|
FilterChainNotificationHandler(FilterChainConfiguration chain)
Creates object that can handle configuration notifications and apply them to FilterChainConfiguration object. |
Method Summary | |
---|---|
boolean |
canTrace()
In addition to MessageFilter.isMessageAccepted(Message) which controls
message content log, this option can enable or disable
additional log entries like "New message#",
"Complete message handling" and so on. |
FilterChainConfiguration |
getChainConfiguration()
|
void |
handle(ConfEvent obj)
Handles notifications from Configuration server. |
boolean |
isMessageAccepted(Message message)
Delegates message evaluation to internal Filter Chain witch is configured upon application settings, defined in CME. |
void |
onChannelClosed(ChannelClosedEvent event)
Handles channel close event to clear filter context. |
void |
onChannelError(ChannelErrorEvent event)
onChannelError is called when some not critical channel error occurs. |
void |
onChannelOpened(java.util.EventObject event)
onChannelOpened is called when the channel opening will be completed successfully. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterChainNotificationHandler(FilterChainConfiguration chain)
FilterChainConfiguration
object.
chain
- Method Detail |
---|
public FilterChainConfiguration getChainConfiguration()
FilterChainConfiguration
objectpublic void onChannelOpened(java.util.EventObject event)
ChannelListener
onChannelOpened
in interface ChannelListener
event
- details.public void onChannelClosed(ChannelClosedEvent event)
onChannelClosed
in interface ChannelListener
event
- details. See event.getCause() to analize the source reason.public void onChannelError(ChannelErrorEvent event)
ChannelListener
onChannelError
in interface ChannelListener
event
- details. See event.getCause() to analize the problem source.public void handle(ConfEvent obj)
handle
in interface Action<ConfEvent>
public boolean isMessageAccepted(Message message)
isMessageAccepted
in interface MessageFilter
message
- for filtering
public boolean canTrace()
MessageFilter
MessageFilter.isMessageAccepted(Message)
which controls
message content log, this option can enable or disable
additional log entries like "New message#",
"Complete message handling" and so on.
canTrace
in interface MessageFilter
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |