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.Cardinality
getInputCardinality()
Return the input cardinality of this node, i.e.List<URL>
getURLs()
String
getWorkerClassName()
Return the node's associatedcom.levigo.jadice.server.core.NodeWorker
full qualified class's name.boolean
isAllowRelativeResources()
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.void
setURLs(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:Node
Return the node's associatedcom.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.
This behavior can be overridden in concrete subclasses.
- Overrides:
getWorkerClassName
in 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: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 classNode
- Returns:
- input cardinality
-
-