org.apache.camel.language
Annotation Type XPath
@Retention(value=RUNTIME)
@Documented
@Target(value={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.
- Version:
value
public abstract String value
- Returns:
- The XPath which will be applied
namespaces
public abstract NamespacePrefix[] namespaces
- Default:
- {@org.apache.camel.language.NamespacePrefix(prefix="soap", uri="http://www.w3.org/2003/05/soap-envelope"), @org.apache.camel.language.NamespacePrefix(prefix="xsd", uri="http://www.w3.org/2001/XMLSchema")}
resultType
public abstract Class<?> resultType
- Default:
- java.lang.Object.class
headerName
public abstract String headerName
- Returns:
- 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:
- ""
Apache Camel