|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.hermesftp.cmd.AbstractFtpCmd net.sf.hermesftp.cmd.impl.FtpCmdPbsz
public class FtpCmdPbsz
PROTECTION BUFFER SIZE (PBSZ)
The argument is a decimal integer representing the maximum size, in bytes, of the encoded data blocks to be sent or received during file transfer. This number shall be no greater than can be represented in a 32-bit unsigned integer.
This command allows the FTP client and server to negotiate a maximum protected buffer size for the connection. There is no default size; the client must issue a PBSZ command before it can issue the first PROT command.
The PBSZ command must be preceded by a successful security data exchange.
If the server cannot parse the argument, or if it will not fit in 32 bits, it should respond with a 501 reply code.
If the server has not completed a security data exchange with the client, it should respond with a 503 reply code.
Otherwise, the server must reply with a 200 reply code. If the size provided by the client is too large for the server, it must use a string of the form "PBSZ=number" in the text part of the reply to indicate a smaller buffer size. The client and the server must use the smaller of the two buffer sizes if both buffer sizes are specified.
[Excerpt from RFC-2228, Horowitz and Lunt]
Field Summary |
---|
Constructor Summary | |
---|---|
FtpCmdPbsz()
|
Method Summary | |
---|---|
void |
execute()
Executes the command. |
java.lang.String |
getHelp()
Returns a short help text for the command. |
boolean |
isAuthenticationRequired()
Returns whether authentication is needed or not. |
Methods inherited from class net.sf.hermesftp.cmd.AbstractFtpCmd |
---|
getAbsPath, getAndResetFileOffset, getArguments, getCtx, getPathArg, getPermission, getToken, handleAsyncCmd, isResponded, msg, msg, msg, msgOut, msgOut, msgOut, out, setArguments, setCtx, setToken |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FtpCmdPbsz()
Method Detail |
---|
public void execute() throws FtpCmdException
FtpCmdException
- Thrown on any exception occuring while the command is executed.public java.lang.String getHelp()
public boolean isAuthenticationRequired()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |