public enum SessionStatus extends Enum<SessionStatus>
An enumeration of session statuses.
Enum Constant and Description |
---|
OK
The session status indicating no errors
|
PROTOCOL_ERROR
The session status indicating a protocol error
|
Modifier and Type | Method and Description |
---|---|
static SessionStatus |
from(int code) |
int |
getCode() |
static SessionStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SessionStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SessionStatus OK
The session status indicating no errors
public static final SessionStatus PROTOCOL_ERROR
The session status indicating a protocol error
public static SessionStatus[] values()
for (SessionStatus c : SessionStatus.values()) System.out.println(c);
public static SessionStatus 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 static SessionStatus from(int code)
code
- the session status codeSessionStatus
from the given code,
or null if no status existspublic int getCode()
SessionStatus
Copyright © 1995-2015 Webtide. All Rights Reserved.