org.neociclo.odetteftp.protocol
Class CommandBuilder

java.lang.Object
  extended by org.neociclo.odetteftp.protocol.CommandBuilder
Direct Known Subclasses:
CommandBuilderVer13

public abstract class CommandBuilder
extends Object

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

Field Summary
static String DEFAULT_PROTOCOL_CHARSET
          Default charset defined in Odette FTP protocol specification.
protected static String ZERO
           
 
Constructor Summary
CommandBuilder()
           
 
Method Summary
static CommandExchangeBuffer changeDirection()
          Create the Change Direction command.
protected static boolean isEmpty(String text)
           
static CommandExchangeBuffer readyMessage()
          Start Session Ready Message.
static CommandExchangeBuffer readyToReceive()
          Create the Ready to Receive command.
static CommandExchangeBuffer setCredit()
          Create the Set Credit command which is used to avoid congestion at the protocol level a flow control.
protected static String yesNo(boolean set)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PROTOCOL_CHARSET

public static final String DEFAULT_PROTOCOL_CHARSET
Default charset defined in Odette FTP protocol specification.

See Also:
Constant Field Values

ZERO

protected static final String ZERO
See Also:
Constant Field Values
Constructor Detail

CommandBuilder

public CommandBuilder()
Method Detail

changeDirection

public static CommandExchangeBuffer changeDirection()
Create the Change Direction command.

Returns:
The Change Direction command with the corresponding values.

readyMessage

public static CommandExchangeBuffer readyMessage()
Start Session Ready Message.

Returns:
Corresponding CommandExchangeBuffer.

readyToReceive

public static CommandExchangeBuffer readyToReceive()
Create the Ready to Receive command.

Returns:
The Ready to Receive command with the corresponding values.

setCredit

public static CommandExchangeBuffer setCredit()
Create the Set Credit command which is used to avoid congestion at the protocol level a flow control.

Returns:
The Set Credit command with the corresponding values.

yesNo

protected static String yesNo(boolean set)

isEmpty

protected static boolean isEmpty(String text)


ACCORD