public abstract class AbstractBody extends Object
body
element
(qualified within the BOSH namespace:
http://jabber.org/protocol/httpbind
) and contain zero or more
child elements (of any namespace). These child elements constitute the
message payload.
In addition to the message payload, the attributes of the wrapper
body
element may also need to be used as part of the communication
protocol being implemented on top of BOSH, or to define additional
namespaces used by the child "payload" elements. These attributes are
exposed via accessors.Modifier and Type | Method and Description |
---|---|
String |
getAttribute(BodyQName attr)
Get the value of the specified attribute.
|
Set<BodyQName> |
getAttributeNames()
Get a set of all defined attribute names.
|
abstract Map<BodyQName,String> |
getAttributes()
Get a map of all defined attribute names with their corresponding values.
|
abstract String |
toXML()
Get an XML String representation of this message.
|
public final Set<BodyQName> getAttributeNames()
public final String getAttribute(BodyQName attr)
attr
- name of the attribute to retriecenull
if not definedpublic abstract Map<BodyQName,String> getAttributes()
public abstract String toXML()
Copyright © 2017. All rights reserved.