net.sf.hermesftp.parser
Interface FtpCmdParser

All Known Implementing Classes:
FtpCmdParserImpl

public interface FtpCmdParser

Parser and Container class for all registered FTP commands.

Author:
Lars Behnke

Method Summary
 FtpCmd createCommandByToken(java.lang.String token)
          Returns the command instance corresponding to the passed token.
 java.lang.String findCommandToken(java.lang.String cmdString)
          Extracts the command token from the passed command line.
 java.lang.String[] getCommandTokens()
          Lists the known FTP commands.
 void setCommands(java.util.Map<java.lang.String,java.lang.String> map)
          Registers the implemented FTP commands.
 

Method Detail

setCommands

void setCommands(java.util.Map<java.lang.String,java.lang.String> map)
Registers the implemented FTP commands.

Parameters:
map - The commands.

getCommandTokens

java.lang.String[] getCommandTokens()
Lists the known FTP commands.

Returns:
The FTP commands.

findCommandToken

java.lang.String findCommandToken(java.lang.String cmdString)
Extracts the command token from the passed command line.

Parameters:
cmdString - The command string.
Returns:
The command token or NULL.

createCommandByToken

FtpCmd createCommandByToken(java.lang.String token)
Returns the command instance corresponding to the passed token.

Parameters:
token - The command token.
Returns:
The command instance.


Copyright © 2005-2007 Lars Behnke. All Rights Reserved.