Class DynamicPipelineNode


  • public class DynamicPipelineNode
    extends Node
    The DynamicPipelineNode tries to build a dynamic workflow pipeline with the goal of converting whatever stream is presented to it into a common output format.

    This node can be configured with an XML ruleset that defines which node shall be called depending on the input's MIME type.

    For a more flexible way of deciding what to do, use the ScriptNode.

    • Field Detail

      • DEFAULT_RULESET

        public static final URI DEFAULT_RULESET
        The location of the default ruleset to use
    • Constructor Detail

      • DynamicPipelineNode

        public DynamicPipelineNode()
    • Method Detail

      • getWorkerClassName

        public String getWorkerClassName()
        Description copied from class: Node
        Return the node's associated com.levigo.jadice.server.core.NodeWorker full qualified class's name. By default, the worker class name is
        • The same as the node name with the trailing "Node" replaced by "Worker" if the node name ends in "Node"
        • The node class name with an appended "Worker" otherwise.
        The package name of the worker class is the name of the Node's package with an appended ".worker".

        This behavior can be overridden in concrete subclasses.

        Overrides:
        getWorkerClassName in class Node
        Returns:
        the full qualified class name of the worker of this node.
      • getTargetMimeType

        public String getTargetMimeType()
        Returns:
        the target mime type
      • setTargetMimeType

        public void setTargetMimeType​(String targetMimeType)
        Set the desired target MIME type that streams shall have after the processing.
        (Default: application/pdf)

        This field is used for a sanity check before processed streams are forwarded to subsequent Nodes. If a Stream does not have this MIME type (see StreamDescriptor.getMimeType()) a warning will occur.

        This sanity check can be switched off by setting this field to ANY_TYPE.

        Parameters:
        targetMimeType - The MIME type the results of the processing shall have
        See Also:
        StreamDescriptor.getMimeType()
      • setUnhandledInputAction

        public void setUnhandledInputAction​(DynamicPipelineNode.UnhandledInputAction unhandledInputAction)
        Set the action to take when an input type is not covered by the ruleset.
        Parameters:
        unhandledInputAction - what action to perform if an input type can not be handled.
      • getRuleset

        public URI getRuleset()
        Returns:
        the location of the ruleset to be used.
      • setRuleset

        public void setRuleset​(URI location)
        Set the location of the ruleset to be used.
        Parameters:
        location - location of the ruleset to be used