org.neociclo.odetteftp.protocol
Interface OdetteFtpExchangeBuffer

All Known Implementing Classes:
CommandExchangeBuffer, DataExchangeBuffer

public interface OdetteFtpExchangeBuffer

The communication between ODETTE-FTP entities is basically done by sending and receiving messages in Exchange Buffers via the transport layer. An ODETTE-FTP Exchange Buffer can have either a Command Exchange Buffer or Data Exchange Buffer.

Version:
$Rev: 411 $ $Date: 2010-06-21 11:55:04 -0300 (Mon, 21 Jun 2010) $
Author:
Rafael Marins

Method Summary
 CommandIdentifier getIdentifier()
          Return the corresponding CommandIdentifier relative to the Exchange Buffer contents.
 ByteBuffer getRawBuffer()
           
 int getSize()
           
 

Method Detail

getRawBuffer

ByteBuffer getRawBuffer()

getIdentifier

CommandIdentifier getIdentifier()
                                throws OdetteFtpException
Return the corresponding 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.

Returns:
CommandIdentifier Instance relative to the command type of this Exchange Buffer.
Throws:
CommandNotRecognisedException - Command identifier not recognized in the specified buffer.
OdetteFtpException
See Also:
org.neociclo.odetteftp.service.CommandIdentifier

getSize

int getSize()


ACCORD