public enum StreamState extends Enum<StreamState>
StreamState indicates one of the stream states from Stream
life-cycle. As XMPP stream negotiation is a multi-step process, the stream
acquires many states. It's the state which dictates the type of packets which
can be accepted/processed by any side of the entity.| Enum Constant and Description |
|---|
CLOSED |
INITIATED |
OPEN |
RESOURCE_BINDING |
RESOURCE_BOUND |
SASL_DONE |
SASL_FAILED |
SASL_STARTED |
SM_ENABLED |
SM_ENABLING |
STARTED |
STREAM_RESUMED |
STREAM_RESUMING |
TLS_DONE |
TLS_FAILED |
TLS_STARTED |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
void |
setState(StreamContext ctx,
Packet packet) |
static StreamState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StreamState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StreamState INITIATED
public static final StreamState STARTED
public static final StreamState TLS_STARTED
public static final StreamState TLS_FAILED
public static final StreamState TLS_DONE
public static final StreamState SASL_STARTED
public static final StreamState SASL_FAILED
public static final StreamState SASL_DONE
public static final StreamState RESOURCE_BINDING
public static final StreamState RESOURCE_BOUND
public static final StreamState SM_ENABLING
public static final StreamState SM_ENABLED
public static final StreamState STREAM_RESUMING
public static final StreamState STREAM_RESUMED
public static final StreamState OPEN
public static final StreamState CLOSED
public static final StreamState UNKNOWN
public static StreamState[] values()
for (StreamState c : StreamState.values()) System.out.println(c);
public static StreamState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void setState(StreamContext ctx, Packet packet)
Copyright © 2019. All rights reserved.