|
FTP Client | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.amoebacode.ftp.FTPServerResponse
FTPServerResponse is a wrapper for FTP server responses, including response codes and text messages.
This class incorporates elements from Bret Taylor's FTPConection.
| Field Summary | |
private int |
responseCode
The numeric code for this response (should be between 100 and 600) |
private java.lang.String |
responseMessage
The text message for this response |
| Constructor Summary | |
protected |
FTPServerResponse(int responseCode,
java.lang.String responseMessage)
Default protected constructor. |
protected |
FTPServerResponse(java.lang.String fullResponse)
Protected constructor parses the response code and text message from the full response String. |
| Method Summary | |
protected java.lang.String |
getFullResponse()
Returns the full FTP server response. |
protected int |
getResponseCode()
Returns the numeric code for this response (should be between 100 and 600). |
protected java.lang.String |
getResponseMessage()
Returns the text message for this response. |
boolean |
isActionNotTaken()
Indicates whether the response code corresponds to an action not taken error. |
boolean |
isDirectoryExistsError()
Indicates whether the response code corresponds to a directory exists error. |
protected boolean |
isPermanentNegative()
Indicates whether the response code corresponds to a permanent negative response. |
protected boolean |
isPositiveComplete()
Indicates whether the response code corresponds to a positive complete response. |
protected boolean |
isPositiveIntermediate()
Indicates whether the response code corresponds to a positive preliminary response. |
protected boolean |
isPositivePreliminary()
Indicates whether the response code corresponds to a positive preliminary response. |
protected boolean |
isTransientNegative()
Indicates whether the response code corresponds to a transient negative response. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int responseCode
private java.lang.String responseMessage
| Constructor Detail |
protected FTPServerResponse(int responseCode,
java.lang.String responseMessage)
responseCode - the numeric response coderesponseMessage - the text messageprotected FTPServerResponse(java.lang.String fullResponse)
fullResponse - the full FTP server response| Method Detail |
protected int getResponseCode()
protected java.lang.String getResponseMessage()
protected java.lang.String getFullResponse()
protected boolean isPositivePreliminary()
protected boolean isPositiveIntermediate()
protected boolean isPositiveComplete()
protected boolean isTransientNegative()
protected boolean isPermanentNegative()
public boolean isDirectoryExistsError()
public boolean isActionNotTaken()
|
FTP Client | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||