Package com.levigo.jadice.server.nodes
Class URLInputNode
- java.lang.Object
-
- com.levigo.jadice.server.internal.NodeInternal
-
- com.levigo.jadice.server.Node
-
- com.levigo.jadice.server.nodes.URLInputNode
-
public class URLInputNode extends Node
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.levigo.jadice.server.Node
Node.Cardinality
-
-
Constructor Summary
Constructors Constructor Description URLInputNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Node.CardinalitygetInputCardinality()Return the input cardinality of this node, i.e.List<URL>getURLs()StringgetWorkerClassName()Return the node's associatedcom.levigo.jadice.server.core.NodeWorkerfull qualified class's name.booleanisAllowRelativeResources()voidsetAllowRelativeResources(boolean allowResources)Allow or deny the retrieval of resources that are relatively (or in the same domain) linked to the first downloaded resource.voidsetURLs(List<URL> urls)Specify the resources to download.-
Methods inherited from class com.levigo.jadice.server.Node
addTransportReceiver, appendSuccessor, apply, equals, getJob, getOutputCardinality, getPredecessors, getSubsidiaryNodes, getSuccessors, getTransportSender, getUUID, hashCode, initialize, prependPredecessor, remove, validateConfiguration
-
-
-
-
Method Detail
-
getWorkerClassName
public String getWorkerClassName()
Description copied from class:NodeReturn the node's associatedcom.levigo.jadice.server.core.NodeWorkerfull 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.
This behavior can be overridden in concrete subclasses.
- Overrides:
getWorkerClassNamein classNode- 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.
-
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. viaHTMLRendererNode.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:NodeReturn 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:
getInputCardinalityin classNode- Returns:
- input cardinality
-
-