Enum Class LoginEvent.Response
- All Implemented Interfaces:
Serializable,Comparable<LoginEvent.Response>,Constable
- Enclosing class:
LoginEvent
Enumeration of possible login server responses.
Each response contains a code and up to three lines of message text that may be displayed to the user.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAccount has been disabled.Account is temporarily inaccessible.Account is locked due to suspected theft.Account is still logged in from a previous session.Account may be compromised.Session ID is invalid.Computer IP address is blocked.Connection to server timed out.Login could not be completed.Authenticator code required.Error establishing connection to server.Error loading player profile.Entered authenticator code was incorrect.Invalid username or password.Invalid login server requested.Too many connections from this IP address.Login server is offline.Login packet was malformed.Player is in a members-only area on a free world.Members subscription required for this world.Account requires a display name.No reply from login server.No response received from login server.Game client requires update.Game client requires update (alternate).Server is undergoing maintenance.Service is currently unavailable.Too many recent login attempts.Unexpected response from login server.Account login attempt was unsuccessful.Vote required to play.World is running a closed beta.Selected world is full. -
Method Summary
Modifier and TypeMethodDescriptionstatic LoginEvent.ResponseforCode(int code) Finds a Response by its numeric code.static LoginEvent.ResponseforMessage(String contained) Finds a Response by a substring contained in its message.Gets the complete message by concatenating all three lines.static LoginEvent.ResponseReturns the enum constant of this class with the specified name.static LoginEvent.Response[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONNECTION_TIMED_OUT
Connection to server timed out. -
ERROR_CONNECTING
Error establishing connection to server. -
NO_SERVER_RESPONSE
No response received from login server. -
INVALID_CREDENTIALS
Invalid username or password. -
ACCOUNT_DISABLED
Account has been disabled. -
ACCOUNT_NOT_LOGGED_OUT
Account is still logged in from a previous session. -
RUNESCAPE_UPDATE
Game client requires update. -
WORLD_FULL
Selected world is full. -
LOGIN_SERVER_OFFLINE
Login server is offline. -
LOGIN_LIMIT
Too many connections from this IP address. -
BAD_SESSION_ID
Session ID is invalid. -
ACCOUNT_STOLEN
Account may be compromised. -
MEMBERSHIP_REQUIRED
Members subscription required for this world. -
COULD_NOT_COMPLETE
Login could not be completed. -
SERVER_BEING_UPDATED
Server is undergoing maintenance. -
TOO_MANY_ATTEMPTS
Too many recent login attempts. -
MEMBERS_ONLY_AREA
Player is in a members-only area on a free world. -
ACCOUNT_LOCKED
Account is locked due to suspected theft. -
WORLD_CLOSED_BETA
World is running a closed beta. -
INVALID_LOGIN_SERVER
Invalid login server requested. -
MALFORMED_LOGIN_PACKET
Login packet was malformed. -
NO_SERVER_REPLY
No reply from login server. -
ERROR_LOADING_PROFILE
Error loading player profile. -
UNEXPECTED_SERVER_RESPONSE
Unexpected response from login server. -
COMPUTER_ADDRESS_BLOCKED
Computer IP address is blocked. -
SERVICE_UNAVAILABLE
Service is currently unavailable. -
NO_DISPLAY_NAME_SET
Account requires a display name. -
UNSUCCESSFUL_ACCOUNT_LOGIN_ATTEMPT
Account login attempt was unsuccessful. -
ACCOUNT_INACCESSIBLE
Account is temporarily inaccessible. -
VOTE_REQUIRED
Vote required to play. -
ENTER_AUTH
Authenticator code required. -
INCORRECT_AUTH_CODE
Entered authenticator code was incorrect. -
RUNESCAPE_UPDATE_2
Game client requires update (alternate).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forCode
Finds a Response by its numeric code.- Parameters:
code- the response code to look up- Returns:
- the matching Response, or
nullif not found
-
forMessage
Finds a Response by a substring contained in its message.- Parameters:
contained- the substring to search for (case-insensitive)- Returns:
- the matching Response, or
nullif not found
-
getMessage
Gets the complete message by concatenating all three lines.- Returns:
- the full response message
-