Package com.yahoo.config
Class UrlNode
- java.lang.Object
-
- com.yahoo.config.Node
-
- com.yahoo.config.LeafNode<java.io.File>
-
- com.yahoo.config.UrlNode
-
- All Implemented Interfaces:
java.lang.Cloneable
public class UrlNode extends LeafNode<java.io.File>
Represents a 'url' in aConfigInstance
, which will be downloaded and made available as aFile
. Stored in the config builder as aUrlReference
to identify fields of this type for special handling in the ConfigPayloadApplier.- Author:
- lesters
-
-
Field Summary
-
Fields inherited from class com.yahoo.config.LeafNode
initialized, value
-
-
Constructor Summary
Constructors Constructor Description UrlNode()
UrlNode(UrlReference url)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doSetValue(java.lang.String value)
UrlReference
getUrlReference()
java.lang.String
getValue()
Subclasses must implement this, in compliance with the rules given in the return tag.java.lang.String
toString()
Subclasses must implement this, in compliance with the rules given in the return tag.static java.util.Map<java.lang.String,UrlReference>
toUrlReferenceMap(java.util.Map<java.lang.String,UrlNode> urlNodeMap)
static java.util.List<UrlReference>
toUrlReferences(java.util.List<UrlNode> urlNodes)
java.io.File
value()
-
Methods inherited from class com.yahoo.config.Node
postInitialize
-
-
-
-
Constructor Detail
-
UrlNode
public UrlNode()
-
UrlNode
public UrlNode(UrlReference url)
-
-
Method Detail
-
toString
public java.lang.String toString()
Description copied from class:LeafNode
Subclasses must implement this, in compliance with the rules given in the return tag.
-
getValue
public java.lang.String getValue()
Description copied from class:LeafNode
Subclasses must implement this, in compliance with the rules given in the return tag.
-
doSetValue
protected boolean doSetValue(java.lang.String value)
- Specified by:
doSetValue
in classLeafNode<java.io.File>
-
getUrlReference
public UrlReference getUrlReference()
-
toUrlReferences
public static java.util.List<UrlReference> toUrlReferences(java.util.List<UrlNode> urlNodes)
-
toUrlReferenceMap
public static java.util.Map<java.lang.String,UrlReference> toUrlReferenceMap(java.util.Map<java.lang.String,UrlNode> urlNodeMap)
-
-