org.apache.ftpserver.command.impl
Class RETR

java.lang.Object
  extended by org.apache.ftpserver.command.AbstractCommand
      extended by 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()
           
 
Method Summary
 void execute(FtpIoSession session, FtpServerContext context, FtpRequest request)
          Execute command.
 java.io.InputStream openInputStream(FtpIoSession session, FtpFile file, long skipLen)
          Skip length and open input stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RETR

public RETR()
Method Detail

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.