gnu.inet.ftp
Class FTPResponse
public final class FTPResponse
extends java.lang.Object
An FTP control response.
Version:
- Chris Burdess
protected int | code - The 3-digit status code.
|
protected String | data - Multiline data, if present.
|
protected String | message - The human-readable message.
|
FTPResponse(int code, String message) - Constructs a new FTP response.
|
FTPResponse(int code, String message, String data) - Constructs a new multiline FTP response.
|
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.
|
code
protected final int code
The 3-digit status code.
data
protected final String data
Multiline data, if present.
message
protected final String message
The human-readable message.
FTPResponse
public FTPResponse(int code,
String message)
Constructs a new FTP response.
code
- the status codemessage
- the message
FTPResponse
public FTPResponse(int code,
String message,
String data)
Constructs a new multiline FTP response.
code
- the status codemessage
- the messagedata
- multiline data
getCode
public int getCode()
Returns the 3-digit status code.
getData
public String getData()
Returns the multiline data, or null if there was no such data.
getMessage
public String getMessage()
Returns the human-readable message.
© Copyright 2003 The Free Software Foundation,
all rights reserved