Class MultipartAlternativeNode

    • Constructor Detail

      • MultipartAlternativeNode

        public MultipartAlternativeNode()
    • 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.
      • getTypePreference

        public String[] getTypePreference()
        Returns:
        the type preference order.
      • setTypePreference

        public void setTypePreference​(String[] typePreference)
        Set the type preference order. (default: "text/html", "text/plain", ANY)
        Parameters:
        typePreference - an array of MIME types
      • setForwardAllMatches

        public void setForwardAllMatches​(boolean forwardAllMatches)
        Set flag if at most one or all matching parts are forwarded
        Parameters:
        forwardAllMatches - if false at most one stream is forwarded
        Since:
        jadice server 4.1.1.3
      • isForwardAllMatches

        public boolean isForwardAllMatches()
        Returns:
        true if all parts that match one the patterns shall be forwarded. false if at most one part shall be forwarded.
        Since:
        jadice server 4.1.1.3