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.

Author:
Apache MINA Project

Constructor Summary
RETR()
           
 
Method Summary
 void execute(FtpIoSession session, FtpServerContext context, FtpRequest request)
          Execute command.
 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 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.