Package rocks.xmpp.extensions.sm.model
Class StreamManagement.Enabled
- java.lang.Object
-
- rocks.xmpp.extensions.sm.model.StreamManagement.Enabled
-
- All Implemented Interfaces:
StreamElement
- Enclosing class:
- StreamManagement
public static final class StreamManagement.Enabled extends Object implements StreamElement
The implementation of the<enabled/>element in theurn:xmpp:sm:3namespace.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()The stream id.StringgetLocation()The server's preferred IP address or hostname (optionally with a port) for reconnection.IntegergetMax()Gets the server's preferred maximum resumption time.booleanisResume()If the server allows session resumption.
-
-
-
Constructor Detail
-
Enabled
public Enabled()
-
Enabled
public Enabled(String id, Boolean resume)
- Parameters:
id- The stream id.resume- If the server allows session resumption.
-
Enabled
public Enabled(String id, Boolean resume, Integer max, String location)
- Parameters:
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.
-
-
Method Detail
-
getId
public final String getId()
The stream id.- Returns:
- The stream id.
-
isResume
public final boolean isResume()
If the server allows session resumption.- Returns:
- If the server allows session resumption.
-
getLocation
public final String getLocation()
The server's preferred IP address or hostname (optionally with a port) for reconnection.- Returns:
- The server's preferred IP address or hostname (optionally with a port) for reconnection
-
getMax
public final Integer getMax()
Gets the server's preferred maximum resumption time.- Returns:
- The server's preferred maximum resumption time.
-
-