org.apache.muse.ws.notification.impl
Class MessagePatternFilter

java.lang.Object
  extended by org.apache.muse.ws.notification.impl.MessagePatternFilter
All Implemented Interfaces:
XmlSerializable, Filter
Direct Known Subclasses:
PublishAllMessagesFilter

public class MessagePatternFilter
extends Object
implements Filter

MessagePatternFilter is the implementation of message pattern filters for WS-N subscriptions. The dialect for message patterns is XPath 1.0.

Author:
Dan Jemiolo (danj)

Constructor Summary
MessagePatternFilter(String pattern, String dialect)
           
 
Method Summary
 boolean accepts(NotificationMessage message)
           
 String toString()
           
 Element toXML()
          Converts this object into an XML representation, as defined by its related schema or specification.
 Element toXML(Document doc)
          Converts this object into an XML representation, as defined by its related schema or specification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessagePatternFilter

public MessagePatternFilter(String pattern,
                            String dialect)
                     throws InvalidMessageContentExpressionFault
Throws:
InvalidMessageContentExpressionFault
Method Detail

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).

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.