|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tranche.configuration.ServerModeFlag
public class ServerModeFlag
Simple byte flags for server mode (permissions such as read, write). Mode information applies to all clients, and must be enforced.
Note that this is a byte. Hence:
| Field Summary | |
|---|---|
static byte |
CAN_READ
Flag: server data can be read by clients, but cannot write data to server. |
static byte |
CAN_READ_WRITE
Flag: clients can write and read data to and from server. |
static byte |
CAN_WRITE
Flag: clients can write data to server, but cannot read it. |
static byte |
NONE
Flag: clients cannot read nor write data from nor to server. |
| Constructor Summary | |
|---|---|
ServerModeFlag()
|
|
| Method Summary | |
|---|---|
static boolean |
canRead(byte flag)
Based on flag byte, can client read data from server? |
static boolean |
canWrite(byte flag)
Based on flag byte, can client write data to server? |
static java.lang.String |
toString(byte flag)
Convert server mode flag byte to String representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte CAN_READ
Flag: server data can be read by clients, but cannot write data to server.
public static final byte CAN_WRITE
Flag: clients can write data to server, but cannot read it.
public static final byte NONE
Flag: clients cannot read nor write data from nor to server.
public static final byte CAN_READ_WRITE
Flag: clients can write and read data to and from server.
| Constructor Detail |
|---|
public ServerModeFlag()
| Method Detail |
|---|
public static final java.lang.String toString(byte flag)
Convert server mode flag byte to String representation.
flag -
public static boolean canRead(byte flag)
Based on flag byte, can client read data from server?
flag -
public static boolean canWrite(byte flag)
Based on flag byte, can client write data to server?
flag -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||