|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.impl.DefaultEndpoint org.apache.camel.component.language.LanguageEndpoint
public class LanguageEndpoint
Language endpoint.
Constructor Summary | |
---|---|
LanguageEndpoint()
|
|
LanguageEndpoint(String endpointUri,
Component component,
Language language,
Expression expression)
|
Method Summary | |
---|---|
Consumer |
createConsumer(Processor processor)
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor |
protected String |
createEndpointUri()
A factory method to lazily create the endpointUri if none is specified |
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint |
Expression |
getExpression()
|
Language |
getLanguage()
|
boolean |
isSingleton()
Whether this class supports being singleton or not. |
boolean |
isTransform()
|
void |
setLanguageName(String languageName)
Sets the name of the language to use |
void |
setScript(String script)
Sets the script to execute |
void |
setTransform(boolean transform)
Whether or not the result of the script should be used as message body. |
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
---|
configureProperties, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, start, stop, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LanguageEndpoint()
public LanguageEndpoint(String endpointUri, Component component, Language language, Expression expression)
Method Detail |
---|
public Producer createProducer() throws Exception
Endpoint
Exception
- can be thrownpublic Consumer createConsumer(Processor processor) throws Exception
Endpoint
processor
- the given processor
Exception
- can be thrownpublic boolean isSingleton()
IsSingleton
protected String createEndpointUri()
DefaultEndpoint
createEndpointUri
in class DefaultEndpoint
public Language getLanguage()
public Expression getExpression()
public boolean isTransform()
public void setTransform(boolean transform)
transform
- true to use result as new message body, false to keep the existing message bodypublic void setLanguageName(String languageName)
languageName
- the name of the languagepublic void setScript(String script)
script
- the script
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |