You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by ra...@apache.org on 2002/03/31 18:48:49 UTC
cvs commit: jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/gui/remote SpyConnectionAdapter.java
rana_b 02/03/31 08:48:49
Modified: ftpserver/src/java/org/apache/avalon/ftpserver/gui/remote
SpyConnectionAdapter.java
Log:
server request/response separation
Revision Changes Path
1.2 +25 -6 jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/gui/remote/SpyConnectionAdapter.java
Index: SpyConnectionAdapter.java
===================================================================
RCS file: /home/cvs/jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/gui/remote/SpyConnectionAdapter.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SpyConnectionAdapter.java 6 Mar 2002 14:00:47 -0000 1.1
+++ SpyConnectionAdapter.java 31 Mar 2002 16:48:49 -0000 1.2
@@ -41,17 +41,36 @@
}
/**
- * Write the message
+ * Write user request
*/
- public void write(final String msg) throws IOException {
- mSpy.write(msg);
- }
+ public void request(final String msg) throws IOException {
+ mSpy.request(msg);
+ }
+
+ /**
+ * Write server response
+ */
+ public void response(final String msg) throws IOException {
+ mSpy.response(msg);
+ }
/**
* Close - unexport the object
*/
public void close() {
- try {mConService.setSpyObject(mstSessionId, null);}catch(Exception ex) {}
- try {UnicastRemoteObject.unexportObject(this, true);}catch(Exception ex) {}
+ System.out.println("Closing spy listener...");
+ try {
+ mConService.setSpyObject(mstSessionId, null);
+ }
+ catch(Exception ex) {
+ //ex.printStackTrace();
+ }
+
+ try {
+ UnicastRemoteObject.unexportObject(this, true);
+ }
+ catch(Exception ex) {
+ //ex.printStackTrace();
+ }
}
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>