org.apache.muse.ws.notification.impl
Class FilterCollection
java.lang.Object
org.apache.muse.ws.notification.impl.FilterCollection
- All Implemented Interfaces:
- XmlSerializable, Filter
public class FilterCollection
- extends Object
- implements Filter
FilterCollection is a set of WSN subscription filters that a notification
producer must evaluate when determining whether it should send a message
to a consumer or not. It implements the Filter interface
so that it can be treated as a single filter by filter-evaluating code; this
allows us to use FilterCollection objects in places where a Filter is
specified even though FilterCollection was not part of the original 2.x API.
- Author:
- Dan Jemiolo (danj)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilterCollection
public FilterCollection()
accepts
public boolean accepts(NotificationMessage message)
- Specified by:
accepts
in interface Filter
- Returns:
- True if the content of the message passes the filter tests (and,
consequently, should be sent to the subscriber that created the
filter).
addFilter
public void addFilter(Filter filter)
getFilters
public Collection getFilters()
toXML
public Element toXML()
- Description copied from interface:
XmlSerializable
- Converts this object into an XML representation, as defined by its
related schema or specification. The format of the XML is dependent
on the concrete type.
- Specified by:
toXML
in interface XmlSerializable
- Returns:
- An XML representation of this object.
toXML
public Element toXML(Document doc)
- Description copied from interface:
XmlSerializable
- Converts this object into an XML representation, as defined by its
related schema or specification. The format of the XML is dependent
on the concrete type.
- Specified by:
toXML
in interface XmlSerializable
- Parameters:
doc
- The DOM Document that will be used to create all of the nodes
in the resulting XML fragment.
- Returns:
- An XML representation of this object.
Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.