|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FTPServerProfile
The goal of this interface is to leave the possibility to handle servers that do not comply with the RFC959 strictly. Custom implementations of this interface will allow developpers to handle such non-conforming servers transparently.
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
| Method Summary | |
|---|---|
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. |
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. |
| Method Detail |
|---|
boolean isControlConnectionReady(FTPResponse response)
throws FTPException
response is the last that
one has to expect after establishing the control
connection with a server.
response -
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.
boolean isCommandCompleted(FTPCommand command,
FTPResponse response)
throws FTPException
response is the last that
one has to expect for the command.
command - 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.
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.
command - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||