|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.routing.filters.xml.JXPathFilter
public class JXPathFilter
JXPathFilter
evaluates an XPath expression against a W3C Document,
XML string, or Java bean and returns true if the result is as expected.
Field Summary | |
---|---|
protected Log |
logger
|
Constructor Summary | |
---|---|
JXPathFilter()
|
|
JXPathFilter(String expression)
|
|
JXPathFilter(String expression,
String expectedValue)
|
Method Summary | |
---|---|
boolean |
accept(UMOMessage obj)
Check a given message against this filter. |
Map |
getContextProperties()
|
String |
getExpectedValue()
|
String |
getExpression()
|
org.apache.commons.jxpath.AbstractFactory |
getFactory()
|
Map |
getNamespaces()
|
String |
getValue()
Deprecated. Use getExpectedValue() . |
protected void |
initialise(org.apache.commons.jxpath.JXPathContext context)
Initializes the JXPathContext based on any relevant properties set for the filter. |
boolean |
isLenient()
|
void |
setContextProperties(Map contextProperties)
|
void |
setExpectedValue(String expectedValue)
Sets the expected result value of the XPath expression |
void |
setExpression(String expression)
|
void |
setFactory(org.apache.commons.jxpath.AbstractFactory factory)
|
void |
setLenient(boolean lenient)
|
void |
setNamespaces(Map namespaces)
|
void |
setValue(String value)
Deprecated. Use setExpectedValue(String expectedValue) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient Log logger
Constructor Detail |
---|
public JXPathFilter()
public JXPathFilter(String expression)
public JXPathFilter(String expression, String expectedValue)
Method Detail |
---|
public boolean accept(UMOMessage obj)
UMOFilter
accept
in interface UMOFilter
obj
- a non null message to filter.
true
if the message matches the filterprotected void initialise(org.apache.commons.jxpath.JXPathContext context)
the
- JXPathContext to initializepublic String getExpression()
public void setExpression(String expression)
expression
- The XPath expressionpublic String getExpectedValue()
public void setExpectedValue(String expectedValue)
public String getValue()
getExpectedValue()
.
public void setValue(String value)
setExpectedValue(String expectedValue)
.
public Map getNamespaces()
public void setNamespaces(Map namespaces)
public Map getContextProperties()
public void setContextProperties(Map contextProperties)
public org.apache.commons.jxpath.AbstractFactory getFactory()
public void setFactory(org.apache.commons.jxpath.AbstractFactory factory)
public boolean isLenient()
public void setLenient(boolean lenient)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |