PutDataMapRequest

public classPutDataMapRequestextendsObject

Public Method Summary

PutDataRequest
asPutDataRequest()
Creates aPutDataRequest containing the data and assets in thisPutDataMapRequest.
staticPutDataMapRequest
create(Stringpath)
Creates aPutDataMapRequest with the provided, complete, path.
staticPutDataMapRequest
createFromDataMapItem(DataMapItem source)
Creates aPutDataMapRequest from aDataMapItem using the provided source.
staticPutDataMapRequest
createWithAutoAppendedId(StringpathPrefix)
Creates aPutDataMapRequest with a randomly generated id prefixed with the provided path.
DataMap
getDataMap()
Returns the structured data associated with this data item.
Uri
getUri()
Returns aUrifor the pending data item.
boolean
isUrgent()
Whether theDataItem for this request is urgent.
PutDataMapRequest
setUrgent()
Flags thisDataItem for urgent transport.

Inherited Method Summary

Public Methods

publicPutDataRequest asPutDataRequest()

Creates aPutDataRequest containing the data and assets in thisPutDataMapRequest.

public staticPutDataMapRequest create(Stringpath)

Creates aPutDataMapRequest with the provided, complete, path.

public staticPutDataMapRequest createFromDataMapItem(DataMapItem source)

Creates aPutDataMapRequest from aDataMapItem using the provided source.

public staticPutDataMapRequest createWithAutoAppendedId(String pathPrefix)

Creates aPutDataMapRequest with a randomly generated id prefixed with the provided path.

publicDataMap getDataMap()

Returns the structured data associated with this data item.

publicUrigetUri()

Returns aUrifor the pending data item. If this is a modification of an existing data item,Uri.getHost() will return the id of the node that originally created it. Otherwise, a new data item will be created with the requesting device's node.

public booleanisUrgent()

Whether theDataItem for this request is urgent.

Returns
  • true if theDataItem for this request is urgent

publicPutDataMapRequest setUrgent()

Flags thisDataItem for urgent transport. Clients should only setUrgent()forDataItems which need to be delivered right away.