public enum ResponseCode extends Enum<ResponseCode>
| Modifier and Type | Field and Description |
|---|---|
private int |
code |
private static byte |
CODE_SEQUENCE_VALUE_1 |
private static byte |
CODE_SEQUENCE_VALUE_2 |
private static ResponseCode[] |
codeArray |
private byte[] |
codeSequence |
private boolean |
containsMessage |
private String |
description |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsMessage() |
static ResponseCode |
fromCode(int code) |
static ResponseCode |
fromSequence(byte[] value) |
int |
getCode() |
byte[] |
getCodeSequence() |
(package private) static ResponseCode |
readCode(InputStream in) |
String |
toString() |
static ResponseCode |
valueOf(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(DataOutputStream out) |
void |
writeResponse(DataOutputStream out,
boolean flush) |
void |
writeResponse(DataOutputStream out,
String explanation) |
void |
writeResponse(DataOutputStream out,
String explanation,
boolean flush) |
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
private static final ResponseCode[] codeArray
private static final byte CODE_SEQUENCE_VALUE_1
private static final byte CODE_SEQUENCE_VALUE_2
private final int code
private final byte[] codeSequence
private final String description
private final boolean containsMessage
public static ResponseCode[] values()
for (ResponseCode c : ResponseCode.values()) System.out.println(c);
public static ResponseCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getCode()
public byte[] getCodeSequence()
public String toString()
toString in class Enum<ResponseCode>public boolean containsMessage()
public void writeResponse(DataOutputStream out) throws IOException
IOExceptionpublic void writeResponse(DataOutputStream out, boolean flush) throws IOException
IOExceptionpublic void writeResponse(DataOutputStream out, String explanation) throws IOException
IOExceptionpublic void writeResponse(DataOutputStream out, String explanation, boolean flush) throws IOException
IOExceptionstatic ResponseCode readCode(InputStream in) throws IOException, ProtocolException
IOExceptionProtocolExceptionpublic static ResponseCode fromSequence(byte[] value)
public static ResponseCode fromCode(int code)
Copyright © 2023 Apache NiFi Project. All rights reserved.