Class URLInputNode


  • public class URLInputNode
    extends Node
    A Node that requests the server to download files from the specified URL and pass them to a subsequent processing workflow.

    As this node is a data source it must not have a predecessor.

    • Constructor Detail

      • URLInputNode

        public URLInputNode()
    • 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.
      • setURLs

        public void setURLs​(List<URL> urls)
        Specify the resources to download.
        Parameters:
        urls - the resources to download.
      • getURLs

        public List<URL> getURLs()
      • isAllowRelativeResources

        public boolean isAllowRelativeResources()
        Returns:
        true if and only if linked resourced are allowed to be resolved.
      • setAllowRelativeResources

        public void setAllowRelativeResources​(boolean allowResources)
        Allow or deny the retrieval of resources that are relatively (or in the same domain) linked to the first downloaded resource. References that are linked absolutely must be allowed in subsequent processing nodes, e.g. via HTMLRendererNode.setAllowHTTPResources(boolean).

        Default value: false

        Parameters:
        allowResources - true if and only if retrieval of hyperlinks is allowed
      • getInputCardinality

        public Node.Cardinality getInputCardinality()
        Description copied from class: Node
        Return the input cardinality of this node, i.e. how many bundles (not streams!) it expects to process. By default, nodes are "pipe-style", i.e. one input, one output.
        Overrides:
        getInputCardinality in class Node
        Returns:
        input cardinality