org.apache.qpid.management.wsdm.capabilities
Class ConsumerCapability

java.lang.Object
  extended by org.apache.muse.core.AbstractCapability
      extended by org.apache.qpid.management.wsdm.capabilities.ConsumerCapability
All Implemented Interfaces:
org.apache.muse.core.Capability, org.apache.muse.core.Initialization, org.apache.muse.core.InitializationParameters, org.apache.muse.core.Shutdown, org.apache.muse.ws.notification.NotificationMessageListener

public class ConsumerCapability
extends org.apache.muse.core.AbstractCapability
implements org.apache.muse.ws.notification.NotificationMessageListener

WS-Notifications consumer capability. At the moment QMan is not a consumer of itself so this capability is here only for test purposes.


Constructor Summary
ConsumerCapability()
           
 
Method Summary
 boolean accepts(org.apache.muse.ws.notification.NotificationMessage message)
          Returns true if this consumer can accepts the message.
 void initializeCompleted()
          Initializes this capability and register itself as message listener.
 void process(org.apache.muse.ws.notification.NotificationMessage message)
          On Message callback.
 
Methods inherited from class org.apache.muse.core.AbstractCapability
getActions, getCapabilityURI, getEnvironment, getInitializationParameter, getInitializationParameters, getLog, getMessageHandler, getPersistence, getResource, hasBeenInitialized, hasBeenShutdown, initialize, prepareShutdown, setCapabilityURI, setEnvironment, setInitializationParameters, setLog, setMessageHandler, setMessageHandlers, setPersistence, setResource, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsumerCapability

public ConsumerCapability()
Method Detail

initializeCompleted

public void initializeCompleted()
                         throws org.apache.muse.ws.addressing.soap.SoapFault
Initializes this capability and register itself as message listener.

Specified by:
initializeCompleted in interface org.apache.muse.core.Capability
Overrides:
initializeCompleted in class org.apache.muse.core.AbstractCapability
Throws:
org.apache.muse.ws.addressing.soap.SoapFault - when the initialization fails.

accepts

public boolean accepts(org.apache.muse.ws.notification.NotificationMessage message)
Returns true if this consumer can accepts the message.

Specified by:
accepts in interface org.apache.muse.ws.notification.NotificationMessageListener
Returns:
true;

process

public void process(org.apache.muse.ws.notification.NotificationMessage message)
On Message callback.

Specified by:
process in interface org.apache.muse.ws.notification.NotificationMessageListener


Licensed to the Apache Software Foundation