Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
JXPathFilter() |
JXPathFilter(String pattern) |
JXPathFilter(String pattern,
String expectedValue) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(MuleMessage obj)
Check a given message against this filter.
|
Map |
getContextProperties() |
String |
getExpectedValue() |
org.apache.commons.jxpath.AbstractFactory |
getFactory() |
Map |
getNamespaces() |
String |
getPattern() |
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 |
setFactory(org.apache.commons.jxpath.AbstractFactory factory) |
void |
setLenient(boolean lenient) |
void |
setNamespaces(Map namespaces) |
void |
setPattern(String pattern) |
void |
setValue(String value)
Deprecated.
Use
setExpectedValue(String expectedValue) . |
public JXPathFilter()
public JXPathFilter(String pattern)
public boolean accept(MuleMessage obj)
Filter
protected void initialise(org.apache.commons.jxpath.JXPathContext context)
context
- the JXPathContext to initializepublic String getPattern()
public void setPattern(String pattern)
pattern
- 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)
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.