org.apache.ftpserver.command
Class STOU

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

public class STOU
extends AbstractCommand

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


Constructor Summary
STOU()
           
 
Method Summary
 void execute(FtpIoSession session, FtpServerContext context, FtpRequest request)
          Execute command.
protected  FileObject getUniqueFile(FtpIoSession session, FileObject 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 - TODO
context - TODO
Throws:
java.io.IOException
FtpException

getUniqueFile

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

Throws:
FtpException


Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.