org.mule.routing.filters.xml
Class IsXmlFilter

java.lang.Object
  extended by org.mule.routing.filters.xml.IsXmlFilter
All Implemented Interfaces:
UMOFilter

public class IsXmlFilter
extends Object
implements UMOFilter

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


Constructor Summary
IsXmlFilter()
           
 
Method Summary
 boolean accept(UMOMessage 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(UMOMessage obj)
Description copied from interface: UMOFilter
Check a given message against this filter.

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


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