org.apache.ftpserver.impl
Class DefaultFtpRequest

java.lang.Object
  extended by org.apache.ftpserver.impl.DefaultFtpRequest
All Implemented Interfaces:
FtpRequest

public class DefaultFtpRequest
extends java.lang.Object
implements FtpRequest

Internal class, do not use directly. FTP request object.

Version:
$Rev: 711534 $, $Date: 2008-11-05 09:48:47 +0100 (Wed, 05 Nov 2008) $
Author:
The Apache MINA Project (dev@mina.apache.org)

Constructor Summary
DefaultFtpRequest(java.lang.String requestLine)
          Default constructor.
 
Method Summary
 java.lang.String getArgument()
          Get ftp input argument.
 java.lang.String getCommand()
          Get the ftp command.
 java.lang.String getRequestLine()
          Get the ftp request line.
 boolean hasArgument()
          Has argument.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultFtpRequest

public DefaultFtpRequest(java.lang.String requestLine)
Default constructor.

Method Detail

getCommand

public java.lang.String getCommand()
Get the ftp command.

Specified by:
getCommand in interface FtpRequest
Returns:
The command part of the request line, e.g. "MKDIR"

getArgument

public java.lang.String getArgument()
Get ftp input argument.

Specified by:
getArgument in interface FtpRequest
Returns:
The argument part of the request line, e.g. "newdir"

getRequestLine

public java.lang.String getRequestLine()
Get the ftp request line.

Specified by:
getRequestLine in interface FtpRequest
Returns:
The full request line, e.g. "MKDIR newdir"

hasArgument

public boolean hasArgument()
Has argument.

Specified by:
hasArgument in interface FtpRequest
Returns:
true if an argument is available

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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