org.mule.module.xml.filters
Class XPathFilter
java.lang.Object
org.mule.module.xml.filters.AbstractJaxpFilter
org.mule.module.xml.filters.XPathFilter
- All Implemented Interfaces:
- MuleContextAware, Initialisable, Filter
public class XPathFilter
- extends AbstractJaxpFilter
- implements Filter, Initialisable, MuleContextAware
|
Field Summary |
protected org.apache.commons.logging.Log |
logger
|
logger
protected transient org.apache.commons.logging.Log logger
XPathFilter
public XPathFilter()
XPathFilter
public XPathFilter(String pattern)
XPathFilter
public XPathFilter(String pattern,
String expectedValue)
setMuleContext
public void setMuleContext(MuleContext context)
- Specified by:
setMuleContext in interface MuleContextAware
initialise
public void initialise()
throws InitialisationException
- Specified by:
initialise in interface Initialisable- Overrides:
initialise in class AbstractJaxpFilter
- Throws:
InitialisationException
accept
public boolean accept(MuleMessage message)
- Specified by:
accept in interface Filter
accept
protected boolean accept(Node node)
getPattern
public String getPattern()
- Returns:
- XPath expression
setPattern
public void setPattern(String pattern)
- Parameters:
pattern - The XPath expression
getExpectedValue
public String getExpectedValue()
- Returns:
- The expected result value of the XPath expression
setExpectedValue
public void setExpectedValue(String expectedValue)
- Sets the expected result value of the XPath expression
- Parameters:
expectedValue - The expected value.
getXpath
public XPath getXpath()
- The xpath object to use to evaluate the expression.
- Returns:
- The xpath object to use to evaluate the expression.
setXpath
public void setXpath(XPath xpath)
- The xpath object to use to evaluate the expression.
- Parameters:
xpath - The xpath object to use to evaluate the expression.
getNamespaces
public Map<String,String> getNamespaces()
- The prefix-to-namespace map for the namespace context to be applied to the
XPath evaluation.
- Returns:
- The prefix-to-namespace map for the namespace context to be applied to
the XPath evaluation.
setNamespaces
public void setNamespaces(Map<String,String> prefixToNamespaceMap)
- The prefix-to-namespace map for the namespace context to be applied to the
XPath evaluation.
- Parameters:
prefixToNamespaceMap - The prefix-to-namespace map for the namespace
context to be applied to the XPath evaluation.
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2003-2013 MuleSoft, Inc.. All Rights Reserved.