|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cuny.cat.server.ClientState
public class ClientState
defines the various possible status of a catp client.
Field Summary | |
---|---|
protected int |
code
the code |
static int |
CONN_CLOSED
connection closed normally |
protected java.lang.String |
description
description of the cause |
static int |
ERROR
common error occurred |
static int |
FATAL
fatal error occurred and cannot be restored |
static int |
OK
being active |
static int |
READY
new connection ready for messaging |
static int |
UNKNOWN
status is unknown |
Constructor Summary | |
---|---|
ClientState(int code)
|
|
ClientState(int code,
java.lang.String description)
|
Method Summary | |
---|---|
int |
getCode()
|
static java.lang.String |
getCodeDesc(int code)
|
java.lang.String |
getDescription()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int UNKNOWN
public static final int READY
public static final int CONN_CLOSED
public static final int OK
public static final int ERROR
public static final int FATAL
protected int code
protected java.lang.String description
Constructor Detail |
---|
public ClientState(int code)
public ClientState(int code, java.lang.String description)
Method Detail |
---|
public int getCode()
public static java.lang.String getCodeDesc(int code)
public java.lang.String getDescription()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |