@Deprecated public class JXPathExtractor extends AbstractTransformer
singleResult
property to false
. In this case a
List
of values will be returned. Note the property is currently ignored
for non-String/XML payloads.Modifier and Type | Field and Description |
---|---|
static String |
OUTPUT_TYPE_NODE
Deprecated.
|
static String |
OUTPUT_TYPE_VALUE
Deprecated.
|
static String |
OUTPUT_TYPE_XML
Deprecated.
|
encoding, endpoint, logger, mimeType, MULE_MESSAGE_DATA_TYPE, muleContext, name, returnType, sourceTypes
PHASE_NAME
PHASE_NAME
PROPERTY_NAME
Constructor and Description |
---|
JXPathExtractor()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Object |
doTransform(Object src,
String encoding)
Deprecated.
Evaluate the expression in the context of the given object and returns the
result.
|
String |
getExpression()
Deprecated.
|
Map<String,String> |
getNamespaces()
Deprecated.
|
String |
getOutputType()
Deprecated.
|
void |
initialise()
Deprecated.
Template method where deriving classes can do any initialisation after the
properties have been set on this transformer
|
boolean |
isSingleResult()
Deprecated.
Should a single value be returned.
|
void |
setExpression(String expression)
Deprecated.
|
void |
setMuleContext(MuleContext context)
Deprecated.
|
void |
setNamespaces(Map<String,String> namespaceURIs)
Deprecated.
|
void |
setOutputType(String outputEncoding)
Deprecated.
|
void |
setSingleResult(boolean singleResult)
Deprecated.
If multiple results are expected from the
expression evaluation, set
this to false. |
dispose, generateTransformerName, getAnnotation, getAnnotations, getEncoding, getEncoding, getEndpoint, getMimeType, getName, getReturnClass, getReturnDataType, getSourceDataTypes, getSourceTypes, isAcceptNull, isAllowNullReturn, isConsumed, isIgnoreBadInput, isSourceDataTypeSupported, isSourceDataTypeSupported, isSourceTypeSupported, isSourceTypeSupported, process, registerSourceType, registerSourceType, setAllowNullReturn, setAnnotations, setEncoding, setEndpoint, setIgnoreBadInput, setMimeType, setName, setReturnClass, setReturnDataType, toString, transform, transform, unregisterSourceType, unregisterSourceType
public static final String OUTPUT_TYPE_NODE
public static final String OUTPUT_TYPE_XML
public static final String OUTPUT_TYPE_VALUE
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
setMuleContext
in class AbstractTransformer
public void initialise() throws InitialisationException
initialise
in interface Initialisable
initialise
in class AbstractTransformer
InitialisationException
RecoverableException
- if an error occurs that can be recovered frompublic Object doTransform(Object src, String encoding) throws TransformerException
doTransform
in class AbstractTransformer
TransformerException
public String getExpression()
public void setExpression(String expression)
expression
- The expression to set.public boolean isSingleResult()
public void setSingleResult(boolean singleResult)
expression
evaluation, set
this to false.singleResult
- flagpublic String getOutputType()
public void setOutputType(String outputEncoding)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.