com.citycolor.net.ftp
Class FTPResponse

java.lang.Object
  extended by com.citycolor.net.ftp.FTPResponse

public class FTPResponse
extends java.lang.Object

This class encapsulates a FTP Server Response. It reads the response from the telnet stream and parses the message configuring its internal state.

Author:
Sebastian E. Ferreyra Pons

Field Summary
 char action
           
 char fineDetail
           
 java.lang.String message
           
 FTPResponse next
           
 char type
           
 
Constructor Summary
FTPResponse(TelnetReader telnetReader)
           
 
Method Summary
 boolean error()
           
 boolean failure()
           
 boolean isConnection()
           
 boolean isFileSystem()
           
 boolean isInfo()
           
 boolean isSecurity()
           
 boolean isSyntax()
           
 boolean needMore()
           
 boolean pending()
           
 boolean proceed()
           
 java.lang.String toString()
           
 java.lang.String userString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

action

public final char action

type

public final char type

fineDetail

public final char fineDetail

message

public final java.lang.String message

next

public final FTPResponse next
Constructor Detail

FTPResponse

public FTPResponse(TelnetReader telnetReader)
            throws java.io.IOException
Throws:
java.io.IOException
Method Detail

pending

public boolean pending()

proceed

public boolean proceed()

needMore

public boolean needMore()

failure

public boolean failure()

error

public boolean error()

isSyntax

public boolean isSyntax()

isInfo

public boolean isInfo()

isConnection

public boolean isConnection()

isSecurity

public boolean isSecurity()

isFileSystem

public boolean isFileSystem()

userString

public java.lang.String userString()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright 1999-2004 Sebastian E. Ferreyra Pons. All Rights Reserved.