public enum RequestResponseCode extends java.lang.Enum<RequestResponseCode>
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.Byte,RequestResponseCode> |
BY_CODE |
CodeType |
codeType |
byte |
codeValue |
protected static int |
RRCODE_POSITION |
Modifier and Type | Method and Description |
---|---|
protected static RequestResponseCode |
fromCode(byte code)
Gives enum from Packet code.
|
static RequestResponseCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RequestResponseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RequestResponseCode LIST_REQUEST
public static final RequestResponseCode LOAD_REQUEST
public static final RequestResponseCode HASH_REQUEST
public static final RequestResponseCode DISCOVER_REQUEST
public static final RequestResponseCode REGISTER
public static final RequestResponseCode UNREGISTER
public static final RequestResponseCode RATIO_REQUEST
public static final RequestResponseCode UPDATE_RATIO
public static final RequestResponseCode SIZE_REQUEST
public static final RequestResponseCode LIST_RESPONSE
public static final RequestResponseCode LOAD_RESPONSE
public static final RequestResponseCode HASH_RESPONSE
public static final RequestResponseCode DISCOVER_RESPONSE
public static final RequestResponseCode RATIO_RESPONSE
public static final RequestResponseCode DENIED
public static final RequestResponseCode SIZE_RESPONSE
public static final RequestResponseCode VERSION_ERROR
public static final RequestResponseCode PROTOCOL_ERROR
public static final RequestResponseCode INTERNAL_ERROR
public static final RequestResponseCode EMPTY_DIRECTORY
public static final RequestResponseCode NOT_FOUND
public static final RequestResponseCode EMPTY_FILE
public static final RequestResponseCode NOT_A_TRACKER
public static final RequestResponseCode UNKNOWN_HOST
public final CodeType codeType
public final byte codeValue
protected static final int RRCODE_POSITION
private static final java.util.Map<java.lang.Byte,RequestResponseCode> BY_CODE
public static RequestResponseCode[] values()
for (RequestResponseCode c : RequestResponseCode.values()) System.out.println(c);
public static RequestResponseCode 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 nullprotected static RequestResponseCode fromCode(byte code) throws ProtocolError
code
- value of the element in packetProtocolError