Action<ConfEvent>
, ChannelListener
, Listener
, MessageFilter
public class FilterChainNotificationHandler extends java.lang.Object implements MessageFilter, Action<ConfEvent>, ChannelListener
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.Action<T>
to receive notifications from Configuration
Server. Creates, deletes or reconfigures message filters in a filter chain
upon received notifications.ChannelListener
. Handles
channel closed event to discard filter context (clears variables, etc.)Constructor | Description |
---|---|
FilterChainNotificationHandler(FilterChainConfiguration chain) |
Creates object that can handle configuration notifications and apply them
to
FilterChainConfiguration object. |
Modifier and Type | Method | Description |
---|---|---|
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.
|
public FilterChainNotificationHandler(FilterChainConfiguration chain)
FilterChainConfiguration
object.chain
- 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)
public boolean isMessageAccepted(Message message)
isMessageAccepted
in interface MessageFilter
message
- for filteringpublic 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
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.