public class PublishItem<T extends Item> extends NodeExtension
| Modifier and Type | Field and Description |
|---|---|
protected Collection<T> |
items |
| Constructor and Description |
|---|
PublishItem(String nodeId,
Collection<T> toPublish)
Construct a request to publish multiple items to a node.
|
PublishItem(String nodeId,
T toPublish)
Construct a request to publish an item to a node.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toXML(String enclosingNamespace)
Returns the XML representation of this Element.
|
getElementName, getNamespace, getNode, getPubSubNamespace, toStringprotected Collection<T extends Item> items
public PublishItem(String nodeId, T toPublish)
nodeId - The node to publish totoPublish - The Item to publishpublic PublishItem(String nodeId, Collection<T> toPublish)
nodeId - The node to publish totoPublish - The list of Item to publishpublic String toXML(String enclosingNamespace)
ElementtoXML in interface ElementtoXML in class NodeExtensionenclosingNamespace - the enclosing namespace or null.