|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FtpCmd
Interface of FTP Commands.
| Method Summary | |
|---|---|
void |
execute()
Executes the command. |
java.lang.String |
getHelp()
Returns a short help text for the command. |
java.lang.String |
getToken()
Returns the command token. |
boolean |
handleAsyncCmd(java.lang.String req)
Handles any request on the control connection that was sent while the current command is executed. |
boolean |
isAuthenticationRequired()
Returns whether authentication is needed or not. |
void |
setArguments(java.lang.String args)
Passes the optional command argument. |
void |
setCtx(FtpSessionContext ctx)
Passes the FTP context shared by all command instances of a user FTP session. |
void |
setToken(java.lang.String token)
Sets the command token. |
| Method Detail |
|---|
void setToken(java.lang.String token)
token - The command token (e.g. STOR, RETR, ...)java.lang.String getToken()
void setArguments(java.lang.String args)
args - The arguments as textvoid setCtx(FtpSessionContext ctx)
ctx - The FTP context.
void execute()
throws FtpCmdException
FtpCmdException - Thrown on any exception occuring while the command is executed.boolean handleAsyncCmd(java.lang.String req)
req - The request that has to be handled.
java.lang.String getHelp()
boolean isAuthenticationRequired()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||