public class MultipartAlternativeNode extends Node
This Node
unpacks multipart/alternative MIME parts.
This node forwards all parts in the preferred order defined by
setTypePreference(String[])
.
If isForwardAllMatches()
evaluates to false, at most one part is forwarded.
The execution fails if
Node.Cardinality
Modifier and Type | Field and Description |
---|---|
static String |
ANY
Constant that indicates that any type is forwarded.
|
Constructor and Description |
---|
MultipartAlternativeNode() |
Modifier and Type | Method and Description |
---|---|
String[] |
getTypePreference() |
String |
getWorkerClassName()
Return the node's associated
NodeWorker full qualified class's
name. |
boolean |
isForwardAllMatches() |
void |
setForwardAllMatches(boolean forwardAllMatches)
Set flag if at most one or all matching parts are forwarded
|
void |
setTypePreference(String[] typePreference)
Set the type preference order.
|
addTransportReceiver, appendSuccessor, apply, equals, getInputCardinality, getJob, getOutputCardinality, getPredecessors, getSubsidiaryNodes, getSuccessors, getTransportSender, getUUID, hashCode, initialize, prependPredecessor, remove, validateConfiguration
public static final String ANY
public String getWorkerClassName()
Node
Return the node's associated
NodeWorker
full qualified class's
name. By default, the worker class name is
This behavior can be overridden in concrete subclasses.
getWorkerClassName
in class Node
public String[] getTypePreference()
public void setTypePreference(String[] typePreference)
ANY
)typePreference
- public void setForwardAllMatches(boolean forwardAllMatches)
forwardAllMatches
- if false at most one stream is forwardedpublic boolean isForwardAllMatches()
Copyright © 2017 levigo holding gmbh. All rights reserved.