|
||||||||||
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.AbstractFtpCmdPort net.sf.hermesftp.cmd.impl.FtpCmdPort
public class FtpCmdPort
DATA PORT (PORT)
The argument is a HOST-PORT specification for the data port to be used in data connection. There are defaults for both the user and server data ports, and under normal circumstances this command and its reply are not needed. If this command is used, the argument is the concatenation of a 32-bit internet host address and a 16-bit TCP port address. This address information is broken into 8-bit fields and the value of each field is transmitted as a decimal number (in character string representation). The fields are separated by commas. A port command would be: PORT h1,h2,h3,h4,p1,p2 where h1 is the high order 8 bits of the internet host address.
[Excerpt from RFC-959, Postel and Reynolds]
Field Summary |
---|
Constructor Summary | |
---|---|
FtpCmdPort()
|
Method Summary | |
---|---|
protected java.lang.String |
doReadIPAddr(java.lang.String args)
Reads the IPv4 or IPv6 compliant address from the passed arguments. |
protected int |
doReadPort(java.lang.String args)
Reads port from passed arguments. |
protected int |
doReadProtocolIdx(java.lang.String args)
Reads the protocol index (1=IPv4, 2=IPv6) from the passed arguments. |
java.lang.String |
getHelp()
Returns a short help text for the command. |
Methods inherited from class net.sf.hermesftp.cmd.AbstractFtpCmdPort |
---|
execute, isAuthenticationRequired, setupDataChannel |
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 FtpCmdPort()
Method Detail |
---|
public java.lang.String getHelp()
protected java.lang.String doReadIPAddr(java.lang.String args)
doReadIPAddr
in class AbstractFtpCmdPort
args
- The arguments.
protected int doReadPort(java.lang.String args)
doReadPort
in class AbstractFtpCmdPort
args
- The arguments.
protected int doReadProtocolIdx(java.lang.String args)
doReadProtocolIdx
in class AbstractFtpCmdPort
args
- The arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |