|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ResponseCode>
sjrd.tricktakinggame.network.ResponseCode
public enum ResponseCode
Code de réponse (de succès ou d'erreur)
Field Summary | |
---|---|
private int |
code
Code numérique |
private String |
defaultMessage
Message par défaut |
private boolean |
protocol
Indique si le code de réponse est une erreur de protocole |
private boolean |
successful
Indique si le code de réponse est un code de succès |
Method Summary | |
---|---|
static ResponseCode |
findByCode(int code)
Identifie un code d'erreur d'après son code numérie |
int |
getCode()
Code numérie |
String |
getDefaultMessage()
Message par défaut |
boolean |
isProtocol()
Indique si le code de réponse est une erreur de protocole |
boolean |
isSuccessful()
Indique si le code de réponse est un code de succès |
static ResponseCode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ResponseCode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ResponseCode UnknownError
public static final ResponseCode CardGameFatalError
public static final ResponseCode Pong
public static final ResponseCode OK
public static final ResponseCode FirstConnectionOK
public static final ResponseCode SecondConnectionOK
public static final ResponseCode AdminConnectionOK
public static final ResponseCode LoggerConnectionOK
public static final ResponseCode StatusNoTable
public static final ResponseCode StatusWaitingForPlayers
public static final ResponseCode StatusNotPlaying
public static final ResponseCode StatusAuctioning
public static final ResponseCode StatusPlaying
public static final ResponseCode Forbidden
public static final ResponseCode UnknownRulesProviderID
public static final ResponseCode BadPlayerCount
public static final ResponseCode TableIsFull
public static final ResponseCode Protocol
public static final ResponseCode InvalidResponseLine
public static final ResponseCode InvalidLogin
public static final ResponseCode InvalidSessionCode
public static final ResponseCode UserAlreadyLogged
public static final ResponseCode InvalidAdmin
Field Detail |
---|
private int code
private String defaultMessage
private boolean successful
private boolean protocol
Method Detail |
---|
public static ResponseCode[] values()
for (ResponseCode c : ResponseCode.values()) System.out.println(c);
public static ResponseCode valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic int getCode()
public String getDefaultMessage()
public boolean isSuccessful()
public boolean isProtocol()
public static ResponseCode findByCode(int code)
code
- Code numérique de l'erreur
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |