class XMPP::Stanza::PrivateQuery

Overview

PrivateQuery implements XEP-0049 - Private XML Storage.

The query carries a single arbitrary XML element whose namespace and local name identify the stored data. A get request includes an empty version of that element so the server knows what to return; a set request stores the element verbatim. The element is preserved as a generic Node so any data can round-trip.

Included Modules

Defined in:

xmpp/stanza/iq/private_storage.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module XMPP::Stanza::IQPayload

namespace : String namespace

Instance methods inherited from module XMPP::Stanza::Packet

name : String name, to_xml(xml : XML::Builder)
to_xml : String
to_xml

Constructor Detail

def self.new(xml : String) #

[View source]
def self.new(node : XML::Node) #

[View source]

Class Method Detail

def self.xml_name : XMLName #

[View source]

Instance Method Detail

def data : Node | Nil #

[View source]
def data=(data : Node | Nil) #

[View source]
def name : String #

[View source]
def namespace : String #

[View source]
def to_xml(xml : XML::Builder) #

[View source]