| Modifier and Type | Method and Description |
|---|---|
Body.Builder |
ack(long ack)
Sets the 'ack' attribute of the body.
|
Body |
build()
Builds the body.
|
Body.Builder |
from(Jid from)
Sets the 'from' attribute of the body.
|
Body.Builder |
hold(byte hold)
Sets the 'hold' attribute of the body.
|
Body.Builder |
key(String key)
Sets the 'key' attribute of the body.
|
Body.Builder |
language(String language)
Sets the 'lang' attribute of the body.
|
Body.Builder |
newKey(String newKey)
Sets the 'newkey' attribute of the body.
|
Body.Builder |
requestId(long requestId)
Sets the 'rid' attribute of the body.
|
Body.Builder |
restart(boolean restart)
Sets the 'restart' attribute of the body.
|
Body.Builder |
route(String route)
Sets the 'route' attribute of the body.
|
Body.Builder |
sessionId(String sessionId)
Sets the 'sid' attribute of the body.
|
Body.Builder |
to(String to)
Sets the 'to' attribute of the body.
|
Body.Builder |
type(Body.Type type)
Sets the 'type' attribute of the body.
|
Body.Builder |
version(String version)
Sets the 'ver' attribute of the body.
|
Body.Builder |
wait(int wait)
Sets the 'wait' attribute of the body.
|
Body.Builder |
wrappedObjects(Collection<Object> objects)
Sets the wrapped objects of the body, i.e. the payload.
|
Body.Builder |
xmppVersion(String xmppVersion)
Sets the 'version' attribute of the body.
|
public String key
public final Body.Builder type(Body.Type type)
type - The 'type' attribute.public final Body.Builder to(String to)
to - The 'to' attribute.public final Body.Builder language(String language)
language - The 'lang' attribute.public final Body.Builder version(String version)
version - The 'ver' attribute.public final Body.Builder wait(int wait)
wait - The 'wait' attribute.public final Body.Builder hold(byte hold)
hold - The 'hold' attribute.public final Body.Builder route(String route)
route - The 'route' attribute.public final Body.Builder ack(long ack)
ack - The 'ack' attribute.public final Body.Builder xmppVersion(String xmppVersion)
xmppVersion - The 'version' attribute.public final Body.Builder sessionId(String sessionId)
sessionId - The 'sid' attribute.public final Body.Builder restart(boolean restart)
restart - The 'restart' attribute.public final Body.Builder requestId(long requestId)
requestId - The 'rid' attribute.public final Body.Builder wrappedObjects(Collection<Object> objects)
objects - The wrapped objects.public final Body.Builder newKey(String newKey)
newKey - The 'newkey' attribute.public final Body.Builder key(String key)
key - The 'key' attribute.public final Body.Builder from(Jid from)
from - The 'from' attribute.public final Body build()
Copyright © 2014–2015 XMPP.rocks. All rights reserved.