Package org.apache.ftpserver.ftplet
Interface FtpRequest
public interface FtpRequest
One FtpRequest made by the client.
- Author:
- Apache MINA Project
-
Method Summary
Modifier and TypeMethodDescriptionGet the ftp request argument.Returns the ftp request command.longReturns the timestamp (milliseconds since the epoch time) when this request was received.Get the client request string.booleanCheck if request contains an argument
-
Method Details
-
getRequestLine
String getRequestLine()Get the client request string.- Returns:
- The full request line, e.g. "MKDIR newdir"
-
getCommand
String getCommand()Returns the ftp request command.- Returns:
- The command part of the request line, e.g. "MKDIR"
-
getArgument
String getArgument()Get the ftp request argument.- Returns:
- The argument part of the request line, e.g. "newdir"
-
hasArgument
boolean hasArgument()Check if request contains an argument- Returns:
trueif an argument is available
-
getReceivedTime
long getReceivedTime()Returns the timestamp (milliseconds since the epoch time) when this request was received.- Returns:
- the timestamp (milliseconds since the epoch time) when this request was received.
-