org.apache.muse.ws.notification
Interface NotificationConsumer
- All Superinterfaces:
- Capability, Initialization, InitializationParameters, Shutdown
- All Known Implementing Classes:
- SimpleNotificationConsumer
public interface NotificationConsumer
- extends Capability
NotificationConsumer is an interface that represents the WS-Notification
NotificationConsumer port type; it is based on WS-N 1.3.
This interface adds a observer-style API to the port type operation (wsnt:Notify)
so that consumers can respond to incoming messages without having to rewrite
the NotificationConsumer implementation code.
- Author:
- Dan Jemiolo (danj)
Methods inherited from interface org.apache.muse.core.Capability |
getActions, getCapabilityURI, getEnvironment, getLog, getMessageHandler, getPersistence, getResource, initializeCompleted, prepareShutdown, setCapabilityURI, setEnvironment, setLog, setMessageHandlers, setPersistence, setResource |
addMessageListener
void addMessageListener(NotificationMessageListener listener)
- Adds the listener to the list of listeners that will be notified
whenever a message is received by the resource.
- Parameters:
listener
-
addTopicListener
void addTopicListener(TopicListener listener)
- Adds the listener to the list of listeners that will be notified
whenever a message is received that has the given WSN Topic.
These listeners will be fired whenever a message is received that
has the listener's topic, regardless of what is returned by accepts().
- Parameters:
listener
-
getMessageListeners
Collection getMessageListeners()
- Returns:
- The listeners that are currently receiving notifications.
getTopicListeners
Collection getTopicListeners(QName topic)
- Returns:
- The listeners that are currently receiving notifications for
the given WSN Topic.
notify
void notify(NotificationMessage[] messages)
- Informs the resource of WS-N notification messages that have been
received. How the messages are processed by the resource is an
implementation detail.
- Parameters:
messages
-
removeMessageListener
void removeMessageListener(NotificationMessageListener listener)
removeTopicListener
void removeTopicListener(TopicListener listener)
Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.