public class XPathFilter extends AbstractJaxpFilter implements Filter, org.mule.runtime.api.lifecycle.Initialisable, MuleContextAware
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
XPathFilter() |
XPathFilter(String pattern) |
XPathFilter(String pattern,
String expectedValue) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Event event,
Event.Builder builder) |
boolean |
accept(InternalMessage message,
Event.Builder builder) |
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 org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableinitialise in class AbstractJaxpFilterorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic boolean accept(InternalMessage message, Event.Builder builder)
public boolean accept(Event event, Event.Builder builder)
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–2017 MuleSoft, Inc.. All rights reserved.