|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neociclo.odetteftp.protocol.CommandExchangeBuffer
public class CommandExchangeBuffer
A Command Exchange Buffer contains a single command starting at the beginning of the buffer. Commands and data are never mixed within an Exchange Buffer. Each command has a fixed length and can not be compressed.
In protocol version 2.0 implementation the CommandExchangeBuffer use DynamicField feature to compute the field size and/or positioning.
Field Summary | |
---|---|
static Charset |
DEFAULT_PROTOCOL_CHARSET
Default charset defined in Odette FTP protocol specification. |
static Charset |
UTF8_ENCODED_PROTOCOL_CHARSET
UTF-8 charset encoding used in text description in the new OFTP 2.0. |
Constructor Summary | |
---|---|
CommandExchangeBuffer(CommandFormat commandFormat)
|
Method Summary | |
---|---|
static boolean |
checkAttribute(char type,
String value)
|
boolean |
equals(Object obj)
|
static String |
formatAttribute(CommandFormat.Field field,
String value)
|
Object |
getAttribute(String name)
Return a Command Exchange Buffer parameter value for the specified field. |
byte[] |
getByteArrayAttribute(String name)
|
String[] |
getFieldNames()
|
String |
getFormattedAttribute(String name)
|
CommandIdentifier |
getIdentifier()
Return the corresponding CommandIdentifier relative to the
Exchange Buffer contents. |
ByteBuffer |
getRawBuffer()
|
int |
getSize()
|
String |
getStringAttribute(String name)
|
Object |
setAttribute(String fieldName,
Object value)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Charset DEFAULT_PROTOCOL_CHARSET
public static final Charset UTF8_ENCODED_PROTOCOL_CHARSET
Constructor Detail |
---|
public CommandExchangeBuffer(CommandFormat commandFormat)
Method Detail |
---|
public static String formatAttribute(CommandFormat.Field field, String value)
public static boolean checkAttribute(char type, String value)
public Object getAttribute(String name)
name
- Field key name.
public String getStringAttribute(String name)
public byte[] getByteArrayAttribute(String name)
public String getFormattedAttribute(String name)
public ByteBuffer getRawBuffer()
getRawBuffer
in interface OdetteFtpExchangeBuffer
public String[] getFieldNames()
public CommandIdentifier getIdentifier()
OdetteFtpExchangeBuffer
CommandIdentifier
relative to the
Exchange Buffer contents. Its value is parsed from the first octet of the
Exchange Buffer specified through class constructor.
The CommandIdentifier defines the format of the Exchange Buffer contents.
getIdentifier
in interface OdetteFtpExchangeBuffer
org.neociclo.odetteftp.service.CommandIdentifier
public int getSize()
getSize
in interface OdetteFtpExchangeBuffer
public Object setAttribute(String fieldName, Object value)
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |