@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 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.
Check a given message against this filter.
|
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.
Method used to perform any initialisation work.
|
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) . |
protected transient Log logger
public JXPathFilter()
public JXPathFilter(String pattern)
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
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic 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)
@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–2015 MuleSoft, Inc.. All rights reserved.