|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ip1.ex14.JFtpResponse
The JFtpResponse class represents an FTP protocol response. As defined by RFC 959, FTP consist of one or more lines of text each starting with a 3 digit code.
JFtpControl,
RFC 959| Field Summary | |
(package private) java.lang.String |
args
|
(package private) int |
code
|
(package private) java.lang.String |
msg
|
(package private) int |
type
|
| Constructor Summary | |
private |
JFtpResponse(int type,
java.lang.String args)
Private constructor for internal use. |
|
JFtpResponse(JFtpControl control,
java.io.BufferedReader in)
The constructor. |
| Method Summary | |
java.net.InetSocketAddress |
getAddr()
Extract the SocketAddress from the response. |
static JFtpResponse |
ioFailure()
Fake reply signaling an I/O error. |
boolean |
isAck()
Is the response a positive acknowledgment ? |
boolean |
isIncomplete()
Did we get an 'incomplete information' response? |
java.lang.String |
toString()
Display some info about the type of error. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
int code
int type
java.lang.String msg
java.lang.String args
| Constructor Detail |
private JFtpResponse(int type,
java.lang.String args)
public JFtpResponse(JFtpControl control,
java.io.BufferedReader in)
throws java.io.IOException
control - the JFtpControl we are operating inin - the BufferedRead to read from| Method Detail |
public static JFtpResponse ioFailure()
public boolean isAck()
public boolean isIncomplete()
public java.lang.String toString()
toString in class java.lang.Object
public java.net.InetSocketAddress getAddr()
throws java.net.UnknownHostException
java.net.UnknownHostExceptionJFtpData.JFtpData(ip1.ex14.JFtpControl)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||