public static final class StreamManagement.Enabled extends java.lang.Object implements StreamElement
The implementation of the <enabled/>
element in the urn:xmpp:sm:3
namespace.
Constructor and Description |
---|
Enabled() |
Enabled(java.lang.String id,
java.lang.Boolean resume) |
Enabled(java.lang.String id,
java.lang.Boolean resume,
java.lang.Integer max,
java.lang.String location) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
The stream id.
|
java.lang.String |
getLocation()
The server’s preferred IP address or hostname (optionally with a port) for reconnection.
|
java.lang.Integer |
getMax()
Gets the server’s preferred maximum resumption time.
|
boolean |
isResume()
If the server allows session resumption.
|
public Enabled()
public Enabled(java.lang.String id, java.lang.Boolean resume)
id
- The stream id.resume
- If the server allows session resumption.public Enabled(java.lang.String id, java.lang.Boolean resume, java.lang.Integer max, java.lang.String location)
id
- The stream id.resume
- If the server allows session resumption.max
- The server’s preferred maximum resumption time.location
- The server’s preferred IP address or hostname (optionally with a port) for reconnection.public final java.lang.String getId()
The stream id.
public final boolean isResume()
If the server allows session resumption.
public final java.lang.String getLocation()
The server’s preferred IP address or hostname (optionally with a port) for reconnection.
public final java.lang.Integer getMax()
Gets the server’s preferred maximum resumption time.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.