Author: rwinston
Date: Tue Aug 29 13:53:47 2006
New Revision: 438206
URL: http://svn.apache.org/viewvc?rev=438206&view=rev
Log:
Clean up FTPSReply.java
Modified:
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/FTPSReply.java
Modified:
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/FTPSReply.java
URL:
http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/FTPSReply.java?rev=438206&r1=438205&r2=438206&view=diff
==============================================================================
---
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/FTPSReply.java
(original)
+++
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/FTPSReply.java
Tue Aug 29 13:53:47 2006
@@ -14,8 +14,12 @@
*/
package org.apache.commons.net.ftp;
+
/**
- * I confirm a response cord of a command added in FTPS.
+ * FTPS Response codes and status checking. Just delegates to [EMAIL
PROTECTED] FTPReply} for now.
+ *
+ * @version $Id$
+ * @see [EMAIL PROTECTED] FTPReply}
*/
public final class FTPSReply {
public static final int CODE_200 = 200;
@@ -67,7 +71,7 @@
* false if not.
*/
public static boolean isPositivePreliminary(int reply) {
- return (reply >= 100 && reply < 200);
+ return FTPReply.isPositivePreliminary(reply);
}
/**
@@ -81,7 +85,7 @@
* false if not.
*/
public static boolean isPositiveCompletion(int reply) {
- return (reply >= 200 && reply < 300);
+ return FTPReply.isPositiveCompletion(reply);
}
/**
@@ -98,7 +102,7 @@
* false if not.
*/
public static boolean isPositiveIntermediate(int reply) {
- return (reply >= 300 && reply < 400);
+ return FTPReply.isPositiveIntermediate(reply);
}
/**
@@ -112,7 +116,7 @@
* false if not.
*/
public static boolean isNegativeTransient(int reply) {
- return (reply >= 400 && reply < 500);
+ return FTPReply.isNegativeTransient(reply);
}
/**
@@ -126,6 +130,6 @@
* false if not.
*/
public static boolean isNegativePermanent(int reply) {
- return (reply >= 500 && reply < 600);
+ return FTPReply.isNegativePermanent(reply);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]