public static enum XmppSession.Status extends java.lang.Enum<XmppSession.Status>
Represents the session status.
The following chart illustrates the valid status transitions:
┌────── INITIAL │ │ │ ▼ │ CONNECTING ◄────────┐ │ │ │ │ ▼ │ │ CONNECTED ───► DISCONNECTED │ │ ▲ │ ▼ │ │ AUTHENTICATING │ │ │ │ │ ▼ │ │ AUTHENTICATED ────────┘ │ │ │ ▼ └─────► CLOSING │ ▼ CLOSED
Enum Constant and Description |
---|
AUTHENTICATED
The session has authenticated.
|
AUTHENTICATING
The session is currently authenticating with the server.
|
CLOSED
The session is closed.
|
CLOSING
The session is closing.
|
CONNECTED
The session is established with the server, features are negotiated, but we are not yet authenticated.
|
CONNECTING
The session is currently negotiating features.
|
DISCONNECTED
The session has been temporarily disconnected by an exception.
|
INITIAL
The session is in initial state.
|
Modifier and Type | Method and Description |
---|---|
static XmppSession.Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static XmppSession.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XmppSession.Status INITIAL
public static final XmppSession.Status CONNECTING
public static final XmppSession.Status CONNECTED
public static final XmppSession.Status AUTHENTICATING
public static final XmppSession.Status AUTHENTICATED
public static final XmppSession.Status DISCONNECTED
public static final XmppSession.Status CLOSING
public static final XmppSession.Status CLOSED
public static XmppSession.Status[] values()
for (XmppSession.Status c : XmppSession.Status.values()) System.out.println(c);
public static XmppSession.Status valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2014–2019 XMPP.rocks. All rights reserved.