|
||||||||||
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
public abstract class AbstractFtpCmdPort
Abstract super class of commands setting up the data channel in passive mode (PASV, EPSV).
Field Summary |
---|
Constructor Summary | |
---|---|
AbstractFtpCmdPort()
|
Method Summary | |
---|---|
protected abstract java.lang.String |
doReadIPAddr(java.lang.String args)
Reads the IPv4 or IPv6 compliant address from the passed arguments. |
protected abstract int |
doReadPort(java.lang.String args)
Reads port from passed arguments. |
protected abstract int |
doReadProtocolIdx(java.lang.String args)
Reads the protocol index (1=IPv4, 2=IPv6) from the passed arguments. |
void |
execute()
Executes the command. |
boolean |
isAuthenticationRequired()
Returns whether authentication is needed or not. |
protected void |
setupDataChannel(int protocolIdx,
java.lang.String ipAddr,
int port)
Sets up the data channel in active transfer mode. |
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 |
Methods inherited from interface net.sf.hermesftp.cmd.FtpCmd |
---|
getHelp |
Constructor Detail |
---|
public AbstractFtpCmdPort()
Method Detail |
---|
public void execute() throws FtpCmdException
FtpCmdException
- Thrown on any exception occuring while the command is executed.protected void setupDataChannel(int protocolIdx, java.lang.String ipAddr, int port) throws java.io.IOException
protocolIdx
- Protocol index (IPv4 or IPv6)ipAddr
- IPv4 or IPv6 compliant address.port
- The port.
java.io.IOException
- Setting up data channel failed.public boolean isAuthenticationRequired()
protected abstract int doReadPort(java.lang.String args)
args
- The arguments.
protected abstract java.lang.String doReadIPAddr(java.lang.String args)
args
- The arguments.
protected abstract int doReadProtocolIdx(java.lang.String args)
args
- The arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |