public class ResourceNode extends Object
| Constructor and Description |
|---|
ResourceNode(String nodeName,
Object object)
Creates an instance of a ResourceNode.
|
ResourceNode(String nodeName,
Object object,
String eTag)
Creates an instance of a ResourceNode.
|
ResourceNode(String nodeName,
Object object,
String eTag,
String path)
Creates an instance of a ResourceNode.
|
| Modifier and Type | Method and Description |
|---|---|
String |
geteTag()
Returns the eTag for this resource or
a collection of all eTags from this resource
and their children.
|
String |
getNodeName()
Returns the name of this resource.
|
Object |
getObject()
Returns a JsonObject, a JsonArray,
a list with ResourceNodes, a byte
array or an Exception.
|
String |
getPath()
Returns the path for
the request.
|
void |
setObject(Object object)
Sets a JsonObject, a JsonArray,
a list with ResourceNodes, a byte
array or an Exception.
|
public ResourceNode(String nodeName, Object object, String eTag, String path)
nodeName - - name of the resourceobject - - JsonObject, JsonArray or an ExceptioneTag - - eTag of the request leading to this resourcepath - - the request pathpublic ResourceNode(String nodeName, Object object, String eTag)
nodeName - - name of the resourceobject - - JsonObject, JsonArray or an ExceptioneTag - - eTag of the request leading to this resourcepublic String geteTag()
public String getNodeName()
public Object getObject()
public String getPath()
public void setObject(Object object)
object - objectCopyright © 2016–2020. All rights reserved.