|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ftpserver.ftplet.DefaultFtpReply
public class DefaultFtpReply
FTP reply object.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
DefaultFtpReply(int code,
java.lang.String message)
Constructor for single-line messages |
|
DefaultFtpReply(int code,
java.lang.String[] message)
Constructor for multi-line replies |
|
| Method Summary | |
|---|---|
int |
getCode()
The reply code |
java.lang.String |
getMessage()
The reply message, might be multiple lines |
java.lang.String |
toString()
Must implement toString to format the reply as described in the RFC. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFtpReply(int code,
java.lang.String message)
code - The reply codemessage - The reply message
public DefaultFtpReply(int code,
java.lang.String[] message)
code - The reply codemessage - The reply message, one line per String| Method Detail |
|---|
public int getCode()
FtpReply
getCode in interface FtpReplypublic java.lang.String getMessage()
FtpReply
getMessage in interface FtpReplypublic java.lang.String toString()
FtpReply
toString in interface FtpReplytoString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||