Package org.apache.camel.support
Class SingleInputLanguageSupport
java.lang.Object
org.apache.camel.support.LanguageSupport
org.apache.camel.support.SingleInputLanguageSupport
- All Implemented Interfaces:
org.apache.camel.CamelContextAware,org.apache.camel.IsSingleton,org.apache.camel.spi.HasCamelContext,org.apache.camel.spi.Language
Base class for
Language implementations that support different sources of input data.-
Field Summary
Fields inherited from class org.apache.camel.support.LanguageSupport
RESOURCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetHeaderName(String headerName) Name of header to use as input, instead of the message bodyvoidsetPropertyName(String propertyName) Name of property to use as input, instead of the message body.Methods inherited from class org.apache.camel.support.LanguageSupport
getCamelContext, hasSimpleFunction, isDynamicResource, isSingleton, isStaticResource, loadResource, property, setCamelContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.spi.Language
createExpression, createExpression, createPredicate, createPredicate
-
Constructor Details
-
SingleInputLanguageSupport
public SingleInputLanguageSupport()
-
-
Method Details
-
getHeaderName
-
setHeaderName
Name of header to use as input, instead of the message body -
getPropertyName
-
setPropertyName
Name of property to use as input, instead of the message body.It has a lower precedent than the name of header if both are set.
-