public static final class Body.Builder
extends java.lang.Object
A builder for the body element.
Modifier and Type | Method and Description |
---|---|
Body.Builder |
accept(java.lang.String accept)
Sets the ‘accept’ attribute of the body.
|
Body.Builder |
ack(long ack)
Sets the ‘ack’ attribute of the body.
|
Body.Builder |
authId(java.lang.String authId)
Sets the ‘authid’ attribute of the body.
|
Body |
build()
Builds the body.
|
Body.Builder |
charsets(java.nio.charset.Charset... charsets)
Sets the ‘charsets’ attribute of the body.
|
Body.Builder |
condition(Body.Condition condition)
Sets the ‘condition’ attribute of the body.
|
Body.Builder |
content(java.lang.String content)
Sets the ‘content’ attribute of the body.
|
Body.Builder |
from(Jid from)
Sets the ‘from’ attribute of the body.
|
Body.Builder |
hold(short hold)
Sets the ‘hold’ attribute of the body.
|
Body.Builder |
inactivity(java.time.Duration inactivity)
Sets the ‘inactivity’ attribute of the body.
|
Body.Builder |
key(java.lang.String key)
Sets the ‘key’ attribute of the body.
|
Body.Builder |
language(java.util.Locale language)
Sets the ‘lang’ attribute of the body.
|
Body.Builder |
maxPause(java.time.Duration maxPause)
Sets the ‘maxpause’ attribute of the body.
|
Body.Builder |
newKey(java.lang.String newKey)
Sets the ‘newkey’ attribute of the body.
|
Body.Builder |
pause(java.time.Duration pause)
Sets the ‘pause’ attribute of the body.
|
Body.Builder |
polling(java.time.Duration polling)
Sets the ‘polling’ attribute of the body.
|
Body.Builder |
report(long report)
Sets the ‘report’ attribute of the body.
|
Body.Builder |
requestId(long requestId)
Sets the ‘rid’ attribute of the body.
|
Body.Builder |
requests(short requests)
Sets the ‘requests’ attribute of the body.
|
Body.Builder |
restart(boolean restart)
Sets the ‘restart’ attribute of the body.
|
Body.Builder |
restartLogic(boolean restartlogic)
Sets the ‘restartlogic’ attribute of the body.
|
Body.Builder |
route(java.lang.String route)
Sets the ‘route’ attribute of the body.
|
Body.Builder |
sessionId(java.lang.String sessionId)
Sets the ‘sid’ attribute of the body.
|
Body.Builder |
stream(java.lang.String stream)
Sets the ‘stream’ attribute of the body.
|
Body.Builder |
time(java.time.Duration time)
Sets the ‘time’ attribute of the body.
|
Body.Builder |
to(Jid to)
Sets the ‘to’ attribute of the body.
|
Body.Builder |
type(Body.Type type)
Sets the ‘type’ attribute of the body.
|
Body.Builder |
uri(java.net.URI uri)
Sets the ‘uri’ attribute of the body.
|
Body.Builder |
version(java.lang.String version)
Sets the ‘ver’ attribute of the body.
|
Body.Builder |
wait(java.time.Duration wait)
Sets the ‘wait’ attribute of the body.
|
Body.Builder |
wrappedObjects(java.util.Collection<java.lang.Object> objects)
Sets the wrapped objects of the body, i.e. the payload.
|
Body.Builder |
xmppVersion(java.lang.String xmppVersion)
Sets the ‘version’ attribute of the body.
|
public final Body.Builder uri(java.net.URI uri)
Sets the ‘uri’ attribute of the body.
uri
- The ‘uri’ attribute.public final Body.Builder accept(java.lang.String accept)
Sets the ‘accept’ attribute of the body.
accept
- The ‘accept’ attribute.public final Body.Builder ack(long ack)
Sets the ‘ack’ attribute of the body.
ack
- The ‘ack’ attribute.public final Body.Builder authId(java.lang.String authId)
Sets the ‘authid’ attribute of the body.
authId
- The ‘authid’ attribute.public final Body.Builder charsets(java.nio.charset.Charset... charsets)
Sets the ‘charsets’ attribute of the body.
charsets
- The ‘charsets’ attribute.public final Body.Builder condition(Body.Condition condition)
Sets the ‘condition’ attribute of the body.
condition
- The ‘condition’ attribute.public final Body.Builder content(java.lang.String content)
Sets the ‘content’ attribute of the body.
content
- The ‘content’ attribute.public final Body.Builder from(Jid from)
Sets the ‘from’ attribute of the body.
from
- The ‘from’ attribute.public final Body.Builder hold(short hold)
Sets the ‘hold’ attribute of the body.
hold
- The ‘hold’ attribute.public final Body.Builder inactivity(java.time.Duration inactivity)
Sets the ‘inactivity’ attribute of the body.
inactivity
- The ‘inactivity’ attribute.public final Body.Builder key(java.lang.String key)
Sets the ‘key’ attribute of the body.
key
- The ‘key’ attribute.public final Body.Builder maxPause(java.time.Duration maxPause)
Sets the ‘maxpause’ attribute of the body.
maxPause
- The ‘maxpause’ attribute.public final Body.Builder newKey(java.lang.String newKey)
Sets the ‘newkey’ attribute of the body.
newKey
- The ‘newkey’ attribute.public final Body.Builder pause(java.time.Duration pause)
Sets the ‘pause’ attribute of the body.
pause
- The ‘pause’ attribute.public final Body.Builder polling(java.time.Duration polling)
Sets the ‘polling’ attribute of the body.
polling
- The ‘polling’ attribute.public final Body.Builder report(long report)
Sets the ‘report’ attribute of the body.
report
- The ‘report’ attribute.public final Body.Builder requests(short requests)
Sets the ‘requests’ attribute of the body.
requests
- The ‘requests’ attribute.public final Body.Builder requestId(long requestId)
Sets the ‘rid’ attribute of the body.
requestId
- The ‘rid’ attribute.public final Body.Builder route(java.lang.String route)
Sets the ‘route’ attribute of the body.
route
- The ‘route’ attribute.public final Body.Builder sessionId(java.lang.String sessionId)
Sets the ‘sid’ attribute of the body.
sessionId
- The ‘sid’ attribute.public final Body.Builder stream(java.lang.String stream)
Sets the ‘stream’ attribute of the body.
stream
- The ‘stream’ attribute.public final Body.Builder time(java.time.Duration time)
Sets the ‘time’ attribute of the body.
time
- The ‘time’ attribute.public final Body.Builder to(Jid to)
Sets the ‘to’ attribute of the body.
to
- The ‘to’ attribute.public final Body.Builder type(Body.Type type)
Sets the ‘type’ attribute of the body.
type
- The ‘type’ attribute.public final Body.Builder version(java.lang.String version)
Sets the ‘ver’ attribute of the body.
version
- The ‘ver’ attribute.public final Body.Builder wait(java.time.Duration wait)
Sets the ‘wait’ attribute of the body.
wait
- The ‘wait’ attribute.public final Body.Builder language(java.util.Locale language)
Sets the ‘lang’ attribute of the body.
language
- The ‘lang’ attribute.public final Body.Builder xmppVersion(java.lang.String xmppVersion)
Sets the ‘version’ attribute of the body.
xmppVersion
- The ‘version’ attribute.public final Body.Builder restart(boolean restart)
Sets the ‘restart’ attribute of the body.
restart
- The ‘restart’ attribute.public final Body.Builder restartLogic(boolean restartlogic)
Sets the ‘restartlogic’ attribute of the body.
restartlogic
- The ‘restartlogic’ attribute.public final Body.Builder wrappedObjects(java.util.Collection<java.lang.Object> objects)
Sets the wrapped objects of the body, i.e. the payload.
objects
- The wrapped objects.public final Body build()
Builds the body.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.