|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.model.OptionalIdentifiedDefinition<Type> org.apache.camel.model.ProcessorDefinition<ExpressionNode> org.apache.camel.model.ExpressionNode org.apache.camel.model.NoOutputExpressionNode org.apache.camel.model.RoutingSlipDefinition<Type>
public class RoutingSlipDefinition<Type extends ProcessorDefinition<Type>>
Represents an XML <routingSlip/> element
Field Summary | |
---|---|
static String |
DEFAULT_DELIMITER
|
Fields inherited from class org.apache.camel.model.ProcessorDefinition |
---|
inheritErrorHandler, log |
Constructor Summary | |
---|---|
RoutingSlipDefinition()
|
|
RoutingSlipDefinition(Expression expression)
|
|
RoutingSlipDefinition(Expression expression,
String uriDelimiter)
|
|
RoutingSlipDefinition(String headerName)
|
|
RoutingSlipDefinition(String headerName,
String uriDelimiter)
|
Method Summary | |
---|---|
RoutingSlipDefinition<Type> |
cacheSize(int cacheSize)
Sets the maximum size used by the ProducerCache which is used
to cache and reuse producers when using this recipient list, when uris are reused. |
Processor |
createProcessor(RouteContext routeContext)
Override this in definition class and implement logic to create the processor based on the definition model. |
Type |
end()
Ends the current block |
Integer |
getCacheSize()
|
Boolean |
getIgnoreInvalidEndpoints()
|
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node |
List<ProcessorDefinition<?>> |
getOutputs()
|
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
String |
getUriDelimiter()
|
RoutingSlipDefinition<Type> |
ignoreInvalidEndpoints()
Ignore the invalidate endpoint exception when try to create a producer with that endpoint |
void |
setCacheSize(Integer cacheSize)
|
void |
setIgnoreInvalidEndpoints(Boolean ignoreInvalidEndpoints)
|
void |
setUriDelimiter(String uriDelimiter)
|
String |
toString()
|
RoutingSlipDefinition<Type> |
uriDelimiter(String uriDelimiter)
Sets the uri delimiter to use |
Methods inherited from class org.apache.camel.model.NoOutputExpressionNode |
---|
addOutput, id, isOutputSupported |
Methods inherited from class org.apache.camel.model.ExpressionNode |
---|
configureChild, createFilterProcessor, createPredicate, getExpression, preCreateProcessor, setExpression, setOutputs |
Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition |
---|
description, getDescription, getDescriptionText, getId, hasCustomIdAssigned, idOrCreate, isCustomId, setCustomId, setDescription, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_DELIMITER
Constructor Detail |
---|
public RoutingSlipDefinition()
public RoutingSlipDefinition(String headerName)
public RoutingSlipDefinition(String headerName, String uriDelimiter)
public RoutingSlipDefinition(Expression expression, String uriDelimiter)
public RoutingSlipDefinition(Expression expression)
Method Detail |
---|
public String toString()
toString
in class Object
public String getShortName()
OptionalIdentifiedDefinition
getShortName
in interface NamedNode
getShortName
in class ExpressionNode
public String getLabel()
ProcessorDefinition
getLabel
in interface NamedNode
getLabel
in class ExpressionNode
public Processor createProcessor(RouteContext routeContext) throws Exception
ProcessorDefinition
createProcessor
in class ProcessorDefinition<ExpressionNode>
Exception
public List<ProcessorDefinition<?>> getOutputs()
getOutputs
in class NoOutputExpressionNode
public void setUriDelimiter(String uriDelimiter)
public String getUriDelimiter()
public void setIgnoreInvalidEndpoints(Boolean ignoreInvalidEndpoints)
public Boolean getIgnoreInvalidEndpoints()
public Integer getCacheSize()
public void setCacheSize(Integer cacheSize)
public Type end()
ProcessorDefinition
end
in class ProcessorDefinition<ExpressionNode>
public RoutingSlipDefinition<Type> ignoreInvalidEndpoints()
public RoutingSlipDefinition<Type> uriDelimiter(String uriDelimiter)
uriDelimiter
- the delimiter
public RoutingSlipDefinition<Type> cacheSize(int cacheSize)
ProducerCache
which is used
to cache and reuse producers when using this recipient list, when uris are reused.
cacheSize
- the cache size, use 0 for default cache size, or -1 to turn cache off.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |