org.apache.muse.ws.notification.impl
Class FilterFactory
java.lang.Object
org.apache.muse.ws.notification.impl.FilterFactory
- public class FilterFactory
- extends java.lang.Object
FilterFactory is a component for creating WS-Notification filters from XML
fragments that are compliant with the WS-N v1.3 schema. It allows for the
creation of topic, message, and properties filters. It is a stateless parser,
so it is represented as a singleton.
- Author:
- Dan Jemiolo (danj)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static FilterFactory getInstance()
- Returns:
- The singleton instance of the factory component.
newInstance
public Filter newInstance(org.w3c.dom.Element xml,
WsResource resource)
throws InvalidFilterFault,
TopicExpressionDialectUnknownFault,
InvalidTopicExpressionFault,
InvalidProducerPropertiesExpressionFault,
InvalidMessageContentExpressionFault
- Parameters:
xml
- An XML fragment representing the WS-N filter, or null.resource
- The resource that is producing messages and using the filter
to determine if a message should be sent to a subscriber.
- Returns:
- A filter based on topics, message patterns, or property values.
If the first parameter was null, the method returns an instance
of PublishAllMessagesFilter.
- Throws:
InvalidFilterFault
TopicExpressionDialectUnknownFault
InvalidTopicExpressionFault
InvalidProducerPropertiesExpressionFault
InvalidMessageContentExpressionFault