gnu.inet.ftp
Class FTPResponse

java.lang.Object
  extended by gnu.inet.ftp.FTPResponse

public final class FTPResponse
extends java.lang.Object

An FTP control response.

Author:
Chris Burdess

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

code

protected final int code
The 3-digit status code.


message

protected final java.lang.String message
The human-readable message.


data

protected final java.lang.String data
Multiline data, if present.

Constructor Detail

FTPResponse

public FTPResponse(int code,
                   java.lang.String message)
Constructs a new FTP response.

Parameters:
code - the status code
message - the message

FTPResponse

public FTPResponse(int code,
                   java.lang.String message,
                   java.lang.String data)
Constructs a new multiline FTP response.

Parameters:
code - the status code
message - the message
data - multiline data
Method Detail

getCode

public int getCode()
Returns the 3-digit status code.


getMessage

public java.lang.String getMessage()
Returns the human-readable message.


getData

public java.lang.String getData()
Returns the multiline data, or null if there was no such data.



© Copyright 2003 The Free Software Foundation, all rights reserved