|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mule.module.xml.filters.AbstractJaxpFilter org.mule.module.xml.filters.XPathFilter
public class XPathFilter
Field Summary | |
---|---|
protected Log |
logger
|
Fields inherited from interface org.mule.api.lifecycle.Initialisable |
---|
PHASE_NAME |
Constructor Summary | |
---|---|
XPathFilter()
|
|
XPathFilter(String pattern)
|
|
XPathFilter(String pattern,
String expectedValue)
|
Method Summary | |
---|---|
boolean |
accept(MuleMessage message)
Check a given message against this filter. |
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()
|
XPath |
getXpath()
The xpath object to use to evaluate the expression. |
int |
hashCode()
|
void |
initialise()
Method used to perform any initialisation work. |
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 |
setXpath(XPath xpath)
The xpath object to use to evaluate the expression. |
Methods inherited from class org.mule.module.xml.filters.AbstractJaxpFilter |
---|
getDocumentBuilderFactory, setDocumentBuilderFactory, toDOMNode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient Log logger
Constructor Detail |
---|
public XPathFilter()
public XPathFilter(String pattern)
public XPathFilter(String pattern, String expectedValue)
Method Detail |
---|
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.
initialise
in interface Initialisable
initialise
in class AbstractJaxpFilter
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdown
RecoverableException
- if an error occurs that can be recovered frompublic boolean accept(MuleMessage message)
Filter
accept
in interface Filter
message
- a non null message to filter.
true
if the message matches the filterprotected 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 XPath getXpath()
public void setXpath(XPath xpath)
xpath
- The xpath object to use to evaluate the expression.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.public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |