public enum ResponseCode extends java.lang.Enum<ResponseCode>
Modifier and Type | Method and Description |
---|---|
boolean |
containsMessage() |
static ResponseCode |
fromCode(int code) |
static ResponseCode |
fromSequence(byte[] value) |
int |
getCode() |
byte[] |
getCodeSequence() |
java.lang.String |
toString() |
static ResponseCode |
valueOf(java.lang.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.
|
void |
writeResponse(java.io.DataOutputStream out) |
void |
writeResponse(java.io.DataOutputStream out,
java.lang.String explanation) |
public static final ResponseCode RESERVED
public static final ResponseCode PROPERTIES_OK
public static final ResponseCode UNKNOWN_PROPERTY_NAME
public static final ResponseCode ILLEGAL_PROPERTY_VALUE
public static final ResponseCode MISSING_PROPERTY
public static final ResponseCode CONTINUE_TRANSACTION
public static final ResponseCode FINISH_TRANSACTION
public static final ResponseCode CONFIRM_TRANSACTION
public static final ResponseCode TRANSACTION_FINISHED
public static final ResponseCode TRANSACTION_FINISHED_BUT_DESTINATION_FULL
public static final ResponseCode CANCEL_TRANSACTION
public static final ResponseCode BAD_CHECKSUM
public static final ResponseCode MORE_DATA
public static final ResponseCode NO_MORE_DATA
public static final ResponseCode UNKNOWN_PORT
public static final ResponseCode PORT_NOT_IN_VALID_STATE
public static final ResponseCode PORTS_DESTINATION_FULL
public static final ResponseCode UNAUTHORIZED
public static final ResponseCode ABORT
public static final ResponseCode UNRECOGNIZED_RESPONSE_CODE
public static final ResponseCode END_OF_STREAM
public static ResponseCode[] values()
for (ResponseCode c : ResponseCode.values()) System.out.println(c);
public static ResponseCode 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 nullpublic int getCode()
public byte[] getCodeSequence()
public java.lang.String toString()
toString
in class java.lang.Enum<ResponseCode>
public boolean containsMessage()
public void writeResponse(java.io.DataOutputStream out) throws java.io.IOException
java.io.IOException
public void writeResponse(java.io.DataOutputStream out, java.lang.String explanation) throws java.io.IOException
java.io.IOException
public static ResponseCode fromSequence(byte[] value)
public static ResponseCode fromCode(int code)