Package org.apache.camel.language.xpath
Class XPathAnnotationExpressionFactory
java.lang.Object
org.apache.camel.support.language.DefaultAnnotationExpressionFactory
org.apache.camel.language.xpath.XPathAnnotationExpressionFactory
- All Implemented Interfaces:
org.apache.camel.support.language.AnnotationExpressionFactory
public class XPathAnnotationExpressionFactory
extends org.apache.camel.support.language.DefaultAnnotationExpressionFactory
Factory for the XPath expression annotations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.Expression
createExpression
(org.apache.camel.CamelContext camelContext, Annotation annotation, org.apache.camel.support.language.LanguageAnnotation languageAnnotation, Class<?> expressionReturnType) protected org.apache.camel.support.language.NamespacePrefix[]
getExpressionNameSpacePrefix
(Annotation annotation) protected String
getHeaderName
(Annotation annotation) Extracts the value of the header method in the Annotation.protected String
getPropertyName
(Annotation annotation) Extracts the value of the property method in the Annotation.protected Class<?>
getResultType
(Annotation annotation) protected boolean
isLogNamespaces
(Annotation annotation) protected boolean
isPreCompile
(Annotation annotation) Methods inherited from class org.apache.camel.support.language.DefaultAnnotationExpressionFactory
getAnnotationObjectValue, getExpressionFromAnnotation
-
Constructor Details
-
XPathAnnotationExpressionFactory
public XPathAnnotationExpressionFactory()
-
-
Method Details
-
createExpression
public org.apache.camel.Expression createExpression(org.apache.camel.CamelContext camelContext, Annotation annotation, org.apache.camel.support.language.LanguageAnnotation languageAnnotation, Class<?> expressionReturnType) - Specified by:
createExpression
in interfaceorg.apache.camel.support.language.AnnotationExpressionFactory
- Overrides:
createExpression
in classorg.apache.camel.support.language.DefaultAnnotationExpressionFactory
-
getResultType
-
getExpressionNameSpacePrefix
protected org.apache.camel.support.language.NamespacePrefix[] getExpressionNameSpacePrefix(Annotation annotation) -
getHeaderName
Extracts the value of the header method in the Annotation. For backwards compatibility this method will return null if the annotation's method is not found.- Returns:
- If the annotation has the method 'headerName' then the name of the header we want to apply the XPath expression to. Otherwise, null will be returned
-
getPropertyName
Extracts the value of the property method in the Annotation. For backwards compatibility this method will return null if the annotation's method is not found.- Returns:
- If the annotation has the method 'propertyName' then the name of the property we want to apply the XPath expression to. Otherwise, null will be returned
-
isLogNamespaces
-
isPreCompile
-