|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgnu.inet.ftp.FTPResponse
public final class FTPResponse
An FTP control response.
Field Summary | |
---|---|
protected int |
code
The 3-digit status code. |
protected java.lang.String |
data
Multiline data, if present. |
protected java.lang.String |
message
The human-readable message. |
Constructor Summary | |
---|---|
FTPResponse(int code,
java.lang.String message)
Constructs a new FTP response. |
|
FTPResponse(int code,
java.lang.String message,
java.lang.String data)
Constructs a new multiline FTP response. |
Method Summary | |
---|---|
int |
getCode()
Returns the 3-digit status code. |
java.lang.String |
getData()
Returns the multiline data, or null if there was no such data. |
java.lang.String |
getMessage()
Returns the human-readable message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final int code
protected final java.lang.String message
protected final java.lang.String data
Constructor Detail |
---|
public FTPResponse(int code, java.lang.String message)
code
- the status codemessage
- the messagepublic FTPResponse(int code, java.lang.String message, java.lang.String data)
code
- the status codemessage
- the messagedata
- multiline dataMethod Detail |
---|
public int getCode()
public java.lang.String getMessage()
public java.lang.String getData()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |