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