@Deprecated public class JXPathFilter extends Object implements Filter, MuleContextAware, Initialisable
JXPathFilter evaluates an XPath expression against a W3C Document,
XML string, or Java bean and returns true if the result is as expected.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger
Deprecated.
|
PHASE_NAME| Constructor and Description |
|---|
JXPathFilter()
Deprecated.
|
JXPathFilter(String pattern)
Deprecated.
|
JXPathFilter(String pattern,
String expectedValue)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(MuleMessage obj)
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
|
Map |
getContextProperties()
Deprecated.
|
String |
getExpectedValue()
Deprecated.
|
org.apache.commons.jxpath.AbstractFactory |
getFactory()
Deprecated.
|
Map<String,String> |
getNamespaces()
Deprecated.
|
String |
getPattern()
Deprecated.
|
String |
getValue()
Deprecated.
Use
getExpectedValue(). |
int |
hashCode()
Deprecated.
|
void |
initialise()
Deprecated.
|
protected void |
initialise(org.apache.commons.jxpath.JXPathContext context)
Deprecated.
Initializes the JXPathContext based on any relevant properties set for the
filter.
|
boolean |
isLenient()
Deprecated.
|
void |
setContextProperties(Map contextProperties)
Deprecated.
|
void |
setExpectedValue(String expectedValue)
Deprecated.
Sets the expected result value of the XPath expression
|
void |
setFactory(org.apache.commons.jxpath.AbstractFactory factory)
Deprecated.
|
void |
setLenient(boolean lenient)
Deprecated.
|
void |
setMuleContext(MuleContext context)
Deprecated.
|
void |
setNamespaces(Map<String,String> namespaces)
Deprecated.
|
void |
setPattern(String pattern)
Deprecated.
|
void |
setValue(String value)
Deprecated.
Use
setExpectedValue(String expectedValue). |
public JXPathFilter()
public JXPathFilter(String pattern)
public void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarepublic void initialise()
throws InitialisationException
initialise in interface InitialisableInitialisationExceptionpublic boolean accept(MuleMessage obj)
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)
@Deprecated public String getValue()
getExpectedValue().@Deprecated public void setValue(String value)
setExpectedValue(String expectedValue).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–2016 MuleSoft, Inc.. All rights reserved.