public static enum ByteProxy.Mode extends java.lang.Enum<ByteProxy.Mode>
| Enum Constant and Description |
|---|
CLIENT
The proxy is just a client that connects to another proxy server.
|
SERVER
The proxy is a server.
|
| Modifier and Type | Method and Description |
|---|---|
static ByteProxy.Mode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ByteProxy.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ByteProxy.Mode SERVER
ServerSocketChannel and can listen to entering
connections.public static final ByteProxy.Mode CLIENT
public static ByteProxy.Mode[] values()
for (ByteProxy.Mode c : ByteProxy.Mode.values()) System.out.println(c);
public static ByteProxy.Mode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null