org.apache.ftpserver.command.impl
Class STOU

java.lang.Object
  extended by org.apache.ftpserver.command.AbstractCommand
      extended by org.apache.ftpserver.command.impl.STOU
All Implemented Interfaces:
Command

public class STOU
extends AbstractCommand

Internal class, do not use directly. STOU <CRLF>
This command behaves like STOR except that the resultant file is to be created in the current directory under a name unique to that directory. The 150 Transfer Started response must include the name generated, See RFC1123 section 4.1.2.9

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
STOU()
           
 
Method Summary
 void execute(FtpIoSession session, FtpServerContext context, FtpRequest request)
          Execute command.
protected  FtpFile getUniqueFile(FtpIoSession session, FtpFile oldFile)
          Get unique file object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

STOU

public STOU()
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

getUniqueFile

protected FtpFile getUniqueFile(FtpIoSession session,
                                FtpFile oldFile)
                         throws FtpException
Get unique file object.

Throws:
FtpException


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.