|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.finj.profile.StrictFTPServerProfile
public class StrictFTPServerProfile
This implementation of the org.finj.FTPServerProfile
interface is a strict, word by word transcription of RFC959:
FTP servers that work with this profile are 100% compatible.
Copyright (C) 2000-2008 Javier Iglesias.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
| Constructor Summary | |
|---|---|
StrictFTPServerProfile()
Constructs a new instance of this class. |
|
| Method Summary | |
|---|---|
protected boolean |
isABORCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isACCTCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isALLOCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isAPPECommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isCDUPCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
boolean |
isCommandCompleted(FTPCommand command,
FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
boolean |
isControlConnectionReady(FTPResponse response)
Checks if the response is the last that
one has to expect after establishing the control
connection with a server. |
protected boolean |
isCWDCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isDELECommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isLISTCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isMKDCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isMODECommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isNLSTCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isNOOPCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isPASSCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isPASVCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isPORTCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isPostAPPECommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect to end the command that
required a data connection setup and destruction. |
boolean |
isPostCommandCompleted(FTPCommand command,
FTPResponse response)
Checks if the response is the last that
one has to expect to end a command that
required a data connection setup and destruction. |
protected boolean |
isPostLISTCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect to end the command that
required a data connection setup and destruction. |
protected boolean |
isPostNLSTCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect to end the command that
required a data connection setup and destruction. |
protected boolean |
isPostRETRCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect to end the command that
required a data connection setup and destruction. |
protected boolean |
isPostSTORCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect to end the command that
required a data connection setup and destruction. |
protected boolean |
isPostSTOUCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect to end the command that
required a data connection setup and destruction. |
protected boolean |
isPWDCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isQUITCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isREINCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isRESTCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isRETRCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isRMDCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isRNFRCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isRNTOCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isSITECommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isSMNTCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isSTATCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isSTORCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isSTOUCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isSTRUCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isSYSTCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isTYPECommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
protected boolean |
isUSERCommandCompleted(FTPResponse response)
Checks if the response is the last that
one has to expect for the command. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StrictFTPServerProfile()
| Method Detail |
|---|
public boolean isControlConnectionReady(FTPResponse response)
throws FTPException
response is the last that
one has to expect after establishing the control
connection with a server.
isControlConnectionReady in interface FTPServerProfileresponse -
true if the response is the last
to expect from server when establishing the control connection.
FTPException - response is not a valid response
when establishing a control connection.
public boolean isCommandCompleted(FTPCommand command,
FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
isCommandCompleted in interface FTPServerProfilecommand - org.finj.FTPCommand sent to the server.response - org.finj.FTPResponse returned by the server.
true if the response is the last
to expect from server for the command.
FTPException - response is not a valid answer
for the command.
protected boolean isUSERCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the USER command.
FTPException - response is not a valid answer
for the command.
protected boolean isPASSCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the PASS command.
FTPException - response is not a valid answer
for the command.
protected boolean isACCTCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the ACCT command.
FTPException - response is not a valid answer
for the command.
protected boolean isCWDCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the CWD command.
FTPException - response is not a valid answer
for the command.
protected boolean isCDUPCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the CDUP command.
FTPException - response is not a valid answer
for the command.
protected boolean isSMNTCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the SMNT command.
FTPException - response is not a valid answer
for the command.
protected boolean isREINCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the REIN command.
FTPException - response is not a valid answer
for the command.
protected boolean isQUITCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the QUIT command.
FTPException - response is not a valid answer
for the command.
protected boolean isPORTCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the PORT command.
FTPException - response is not a valid answer
for the command.
protected boolean isPASVCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the PASV command.
FTPException - response is not a valid answer
for the command.
protected boolean isTYPECommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the TYPE command.
FTPException - response is not a valid answer
for the command.
protected boolean isSTRUCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the STRU command.
FTPException - response is not a valid answer
for the command.
protected boolean isMODECommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the MODE command.
FTPException - response is not a valid answer
for the command.
protected boolean isRETRCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the RETR command.
FTPException - response is not a valid answer
for the command.
protected boolean isSTORCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the STOR command.
FTPException - response is not a valid answer
for the command.
protected boolean isSTOUCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the STOU command.
FTPException - response is not a valid answer
for the command.
protected boolean isAPPECommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the APPE command.
FTPException - response is not a valid answer
for the command.
protected boolean isALLOCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the ALLO command.
FTPException - response is not a valid answer
for the command.
protected boolean isRESTCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the REST command.
FTPException - response is not a valid answer
for the command.
protected boolean isRNFRCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the RNFR command.
FTPException - response is not a valid answer
for the command.
protected boolean isRNTOCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the RNTO command.
FTPException - response is not a valid answer
for the command.
protected boolean isABORCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the ABOR command.
FTPException - response is not a valid answer
for the command.
protected boolean isDELECommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the DELE command.
FTPException - response is not a valid answer
for the command.
protected boolean isRMDCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the RMD command.
FTPException - response is not a valid answer
for the command.
protected boolean isMKDCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the MKD command.
FTPException - response is not a valid answer
for the command.
protected boolean isPWDCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the PWD command.
FTPException - response is not a valid answer
for the command.
protected boolean isLISTCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the LIST command.
FTPException - response is not a valid answer
for the command.
protected boolean isNLSTCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the NLST command.
FTPException - response is not a valid answer
for the command.
protected boolean isSITECommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the SITE command.
FTPException - response is not a valid answer
for the command.
protected boolean isSYSTCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the SYST command.
FTPException - response is not a valid answer
for the command.
protected boolean isSTATCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the STAT command.
FTPException - response is not a valid answer
for the command.
protected boolean isNOOPCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
response - response from server to check.
true if the response is
the last to expect from server for the NOOP command.
FTPException - response is not a valid answer
for the command.
public boolean isPostCommandCompleted(FTPCommand command,
FTPResponse response)
throws FTPException
response is the last that
one has to expect to end a command that
required a data connection setup and destruction.
This method only applies to:
org.finj.FTPCommand.APPEND_WITH_CREATEorg.finj.FTPCommand.NAME_LISTorg.finj.FTPCommand.STORE_FILEorg.finj.FTPCommand.STORE_UNIQUE_FILE FIXME:check that!isCommandCompleted(org.finj.FTPCommand, org.finj.FTPResponse)
which will be the one triggering the command execution and
data connection opening.
isPostCommandCompleted in interface FTPServerProfilecommand - org.finj.FTPCommand sent to the server.response - org.finj.FTPResponse returned by the server.
true if the response is the last
to expect from server for the command.
FTPException - response is not a valid answer
for the command.
protected boolean isPostAPPECommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect to end the command that
required a data connection setup and destruction.
response - response from server to check.
true if the response is the last
to expect from server for the APPE.
FTPException - response is not a valid answer
for the command.
protected boolean isPostLISTCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect to end the command that
required a data connection setup and destruction.
response - response from server to check.
true if the response is the last
to expect from server for the LIST.
FTPException - response is not a valid answer
for the command.
protected boolean isPostNLSTCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect to end the command that
required a data connection setup and destruction.
response - response from server to check.
true if the response is the last
to expect from server for the NLST.
FTPException - response is not a valid answer
for the command.
protected boolean isPostRETRCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect to end the command that
required a data connection setup and destruction.
response - response from server to check.
true if the response is the last
to expect from server for the RETR.
FTPException - response is not a valid answer
for the command.
protected boolean isPostSTORCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect to end the command that
required a data connection setup and destruction.
response - response from server to check.
true if the response is the last
to expect from server for the STOR.
FTPException - response is not a valid answer
for the command.
protected boolean isPostSTOUCommandCompleted(FTPResponse response)
throws FTPException
response is the last that
one has to expect to end the command that
required a data connection setup and destruction.
response - response from server to check.
true if the response is the last
to expect from server for the STOU.
FTPException - response is not a valid answer
for the command.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||