|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.ServiceSupport
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, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
|---|
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.camel.Service |
|---|
start, stop |
| 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 thrown
public 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 DefaultEndpointpublic 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 | |||||||||