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.
- Version:
- $Rev: 734241 $, $Date: 2009-01-13 22:05:31 +0100 (Tue, 13 Jan 2009) $
- Author:
- The Apache MINA Project (dev@mina.apache.org)
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 java.io.IOException,
FtpException
- Execute command.
- Parameters:
session
- The current FtpIoSession
context
- The current FtpServerContext
request
- The current FtpRequest
- Throws:
java.io.IOException
FtpException
openInputStream
public java.io.InputStream openInputStream(FtpIoSession session,
FtpFile file,
long skipLen)
throws java.io.IOException
- Skip length and open input stream.
- Throws:
java.io.IOException
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.