|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<CommandIdentifier>
org.neociclo.odetteftp.protocol.CommandIdentifier
public enum CommandIdentifier
Odette FTP entities communicate by sending and receiving messages in Exchange Buffers. Each Exchange Buffer correspond to a command which is defined by the Command Identifier. The identifier is verified at the first octet of an Exchange Buffer that define the format of the remaing buffer.
The CommandIdentifier class provide type safe instances to distinguish every Exchange Buffer over all supported commands types.
Enum Constant Summary | |
---|---|
AUCH
Authentication Challenge |
|
AURP
Authentication Response |
|
CD
Change Direction |
|
CDT
Set Credit |
|
DATA
Data |
|
EERP
End to End Response |
|
EFID
End File |
|
EFNA
End File Negative Answer |
|
EFPA
End File Positive Answer |
|
ESID
End Session |
|
NERP
Negative End to End Response |
|
RTR
Ready To Receive |
|
SECD
Security Change Direction |
|
SFID
Start File |
|
SFNA
Start File Negative Answer |
|
SFPA
Start File Positive Answer |
|
SSID
Start Session |
|
SSRM
Start Session Ready Message |
Method Summary | |
---|---|
char |
getCode()
Return the protocol representation of CommandIdentifier enum. |
static CommandIdentifier |
parse(char code)
Convenient method for parsing the proper CommandIdentifier instance given a identifier character. |
static CommandIdentifier |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CommandIdentifier[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CommandIdentifier AUCH
public static final CommandIdentifier AURP
public static final CommandIdentifier CD
public static final CommandIdentifier CDT
public static final CommandIdentifier DATA
public static final CommandIdentifier EERP
public static final CommandIdentifier EFID
public static final CommandIdentifier EFNA
public static final CommandIdentifier EFPA
public static final CommandIdentifier ESID
public static final CommandIdentifier NERP
public static final CommandIdentifier RTR
public static final CommandIdentifier SECD
public static final CommandIdentifier SFID
public static final CommandIdentifier SFNA
public static final CommandIdentifier SFPA
public static final CommandIdentifier SSID
public static final CommandIdentifier SSRM
Method Detail |
---|
public static CommandIdentifier[] values()
for (CommandIdentifier c : CommandIdentifier.values()) System.out.println(c);
public static CommandIdentifier valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static CommandIdentifier parse(char code) throws OdetteFtpException
identifier
- The command identifier being evaluated
CommandNotRecognisedException
- Command not recognised
OdetteFtpException
public char getCode()
String
corresponding protocol code.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |