Package org.apache.camel.language.xpath
Annotation Type XPath
-
@Retention(RUNTIME) @Documented @Target({FIELD,METHOD,PARAMETER}) @LanguageAnnotation(language="xpath", factory=XPathAnnotationExpressionFactory.class) public @interface XPath
Used to inject an XPath expression into a field, property, method or parameter when using Bean Integration.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String
headerName
The name of the header we want to apply the XPath expression to.org.apache.camel.support.language.NamespacePrefix[]
namespaces
Namespace prefix mappingsClass<?>
resultType
The desired return type from the evaluated XPath expression.
-
-
-
Element Detail
-
value
String value
The XPath which will be applied
-
-
-
namespaces
org.apache.camel.support.language.NamespacePrefix[] namespaces
Namespace prefix mappings- Default:
- {@org.apache.camel.support.language.NamespacePrefix(prefix="soap", uri="http://www.w3.org/2003/05/soap-envelope"), @org.apache.camel.support.language.NamespacePrefix(prefix="xsd", uri="http://www.w3.org/2001/XMLSchema")}
-
-
-
resultType
Class<?> resultType
The desired return type from the evaluated XPath expression.- Default:
- java.lang.Object.class
-
-
-
headerName
String headerName
The name of the header we want to apply the XPath expression to. If this is empty then the XPath expression will be applied to the body instead.- Default:
- ""
-
-