public class XPathFilter extends AbstractJaxpFilter implements Filter, Initialisable, MuleContextAware
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
PHASE_NAME| Constructor and Description |
|---|
XPathFilter() |
XPathFilter(String pattern) |
XPathFilter(String pattern,
String expectedValue) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(MuleMessage message) |
protected boolean |
accept(Node node) |
boolean |
equals(Object obj) |
String |
getExpectedValue() |
Map<String,String> |
getNamespaces()
The prefix-to-namespace map for the namespace context to be applied to the
XPath evaluation.
|
String |
getPattern() |
int |
hashCode() |
void |
initialise() |
void |
setExpectedValue(String expectedValue)
Sets the expected result value of the XPath expression
|
void |
setMuleContext(MuleContext context) |
void |
setNamespaces(Map<String,String> prefixToNamespaceMap)
The prefix-to-namespace map for the namespace context to be applied to the
XPath evaluation.
|
void |
setPattern(String pattern) |
void |
setXpathEvaluator(XPathEvaluator xpathEvaluator) |
getDocumentBuilderFactory, setDocumentBuilderFactory, toDOMNode, toDOMNodepublic XPathFilter()
public XPathFilter(String pattern)
public void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarepublic void initialise()
throws InitialisationException
initialise in interface Initialisableinitialise in class AbstractJaxpFilterInitialisationExceptionpublic boolean accept(MuleMessage message)
protected boolean accept(Node node)
public String getPattern()
public void setPattern(String pattern)
pattern - The XPath expressionpublic String getExpectedValue()
public void setExpectedValue(String expectedValue)
expectedValue - The expected value.public void setXpathEvaluator(XPathEvaluator xpathEvaluator)
public Map<String,String> getNamespaces()
public void setNamespaces(Map<String,String> prefixToNamespaceMap)
prefixToNamespaceMap - The prefix-to-namespace map for the namespace
context to be applied to the XPath evaluation.Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.