org.apache.ftpserver.command.impl
Class RETR
java.lang.Object
org.apache.ftpserver.command.AbstractCommand
org.apache.ftpserver.command.impl.RETR
- All Implemented Interfaces:
- Command
public class RETR
- extends AbstractCommand
Internal class, do not use directly.
RETR <SP> <pathname> <CRLF>
This command causes the server-DTP to transfer a copy of the file, specified
in the pathname, to the server- or user-DTP at the other end of the data
connection. The status and contents of the file at the server site shall be
unaffected.
- Author:
- Apache MINA Project
Constructor Summary |
RETR()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RETR
public RETR()
execute
public void execute(FtpIoSession session,
FtpServerContext context,
FtpRequest request)
throws IOException,
FtpException
- Execute command.
- Parameters:
session
- The current FtpIoSession
context
- The current FtpServerContext
request
- The current FtpRequest
- Throws:
IOException
FtpException
openInputStream
public InputStream openInputStream(FtpIoSession session,
FtpFile file,
long skipLen)
throws IOException
- Skip length and open input stream.
- Throws:
IOException
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.