public final class FTPResponse extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
code
The 3-digit status code.
|
protected String |
data
Multiline data, if present.
|
protected String |
message
The human-readable message.
|
| Constructor and Description |
|---|
FTPResponse(int code,
String message)
Constructs a new FTP response.
|
FTPResponse(int code,
String message,
String data)
Constructs a new multiline FTP response.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Returns the 3-digit status code.
|
String |
getData()
Returns the multiline data, or null if there was no such data.
|
String |
getMessage()
Returns the human-readable message.
|
protected final int code
protected final String message
protected final String data
public FTPResponse(int code,
String message)
code - the status codemessage - the messageCopyright © 2017. All rights reserved.