org.apache.muse.ws.notification.impl
Class ProducerPropertiesFilter
java.lang.Object
org.apache.muse.ws.notification.impl.ProducerPropertiesFilter
- All Implemented Interfaces:
- XmlSerializable, Filter
public class ProducerPropertiesFilter
- extends Object
- implements Filter
ProducerPropertiesFilter is the implementation of resource property filters
for WS-N subscriptions. The filter objects need a reference to the producer
resource so that they can read current property values each time the filter
is evaluated. This filter is different from others in that it doesn't
evaluate the message content; rather, it evalutes the resource's current
WS-RP document in order to decide if it should send the message.
- Author:
- Dan Jemiolo (danj)
ProducerPropertiesFilter
public ProducerPropertiesFilter(String expression,
String dialect)
throws InvalidProducerPropertiesExpressionFault
- Throws:
InvalidProducerPropertiesExpressionFault
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).
getResource
public WsResource getResource()
setResource
public void setResource(WsResource resource)
toString
public String toString()
- Overrides:
toString
in class Object
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.