|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fossilec.odettej.service.CommandIdentifier
public final class 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.
Field Summary | |
---|---|
static CommandIdentifier |
CD
Change Direction |
static CommandIdentifier |
CDT
Set Credit |
static CommandIdentifier |
DATA
Data |
static CommandIdentifier |
EERP
End to End Response |
static CommandIdentifier |
EFID
End File |
static CommandIdentifier |
EFNA
End File Negative Answer |
static CommandIdentifier |
EFPA
End File Positive Answer |
static CommandIdentifier |
ESID
End Session |
static CommandIdentifier |
RTR
Ready To Receive |
static CommandIdentifier |
SFID
Start File |
static CommandIdentifier |
SFNA
Start File Negative Answer |
static CommandIdentifier |
SFPA
Start File Positive Answer |
static CommandIdentifier |
SSID
Start Session |
static CommandIdentifier |
SSRM
Start Session Ready Message |
Method Summary | |
---|---|
java.lang.String |
getCode()
Return the protocol representation of CommandIdentifier enum. |
static CommandIdentifier |
parse(java.lang.String code)
Convenient method for parsing the proper CommandIdentifier instance given a identifier character. |
java.lang.String |
toString()
|
static java.util.Collection |
values()
Return a collection of the avaiable typed enumerations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final CommandIdentifier SSRM
public static final CommandIdentifier SSID
public static final CommandIdentifier SFID
public static final CommandIdentifier SFPA
public static final CommandIdentifier SFNA
public static final CommandIdentifier DATA
public static final CommandIdentifier CDT
public static final CommandIdentifier EFID
public static final CommandIdentifier EFPA
public static final CommandIdentifier EFNA
public static final CommandIdentifier ESID
public static final CommandIdentifier CD
public static final CommandIdentifier EERP
public static final CommandIdentifier RTR
Method Detail |
---|
public java.lang.String getCode()
String
corresponding protocol code.public java.lang.String toString()
toString
in class java.lang.Object
public static CommandIdentifier parse(java.lang.String code) throws OdetteFTPException
identifier
- The command identifier being evaluated
CommandNotRecognisedException
- Command not recognised
OdetteFTPException
public static java.util.Collection values()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |