public abstract class BaseDataObject extends Object
Base class for google data objects.
Constructor and Description |
---|
BaseDataObject(String kind)
Initializes a new instance of the class.
|
BaseDataObject(String kind,
String id)
Initializes a new instance of the class.
|
BaseDataObject(String kind,
String id,
String eTag)
Initializes a new instance of the class.
|
Modifier and Type | Method and Description |
---|---|
String |
getETag()
An ETag or entity tag is one of several mechanisms that HTTP provides for web cache validation, and which allows a client to make conditional requests.
|
String |
getId()
Identifier of the resource.
|
String |
getKind()
Type of the resource
|
void |
setETag(String value)
An ETag or entity tag is one of several mechanisms that HTTP provides for web cache validation, and which allows a client to make conditional requests.
|
void |
setId(String value)
Identifier of the resource.
|
public BaseDataObject(String kind)
Initializes a new instance of the class.
kind
- Type of the resourcepublic BaseDataObject(String kind, String id)
Initializes a new instance of the class.
kind
- Type of the resourceid
- Identifier of the resource.public String getETag()
An ETag or entity tag is one of several mechanisms that HTTP provides for web cache validation, and which allows a client to make conditional requests. This allows caches to be more efficient, and saves bandwidth, as a web server does not need to send a full response if the content has not changed. ETags can also be used for optimistic concurrency control, as a way to help prevent simultaneous updates of a resource from overwriting each other.
String
object.public void setETag(String value)
An ETag or entity tag is one of several mechanisms that HTTP provides for web cache validation, and which allows a client to make conditional requests. This allows caches to be more efficient, and saves bandwidth, as a web server does not need to send a full response if the content has not changed. ETags can also be used for optimistic concurrency control, as a way to help prevent simultaneous updates of a resource from overwriting each other.
value
- a String
object.Copyright (c) 2008-2017 Aspose Pty Ltd. All Rights Reserved.