org.mule.module.xml.filters
Class IsXmlFilter

java.lang.Object
  extended by org.mule.module.xml.filters.IsXmlFilter
All Implemented Interfaces:
Filter

public class IsXmlFilter
extends Object
implements Filter

IsXmlFilter accepts a String or byte[] if its contents are valid (well-formed) XML.


Constructor Summary
IsXmlFilter()
           
 
Method Summary
 boolean accept(MuleMessage obj)
          Check a given message against this filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsXmlFilter

public IsXmlFilter()
Method Detail

accept

public boolean accept(MuleMessage obj)
Description copied from interface: Filter
Check a given message against this filter.

Specified by:
accept in interface Filter
Parameters:
obj - a non null message to filter.
Returns:
true if the message matches the filter


Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.