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:46:02 UTC
cvs commit: jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/remote SpyConnectionAdapter.java
rana_b 02/03/31 08:46:02
Modified: ftpserver/src/java/org/apache/avalon/ftpserver/remote
SpyConnectionAdapter.java
Log:
server request/response separation
Revision Changes Path
1.2 +19 -3 jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/remote/SpyConnectionAdapter.java
Index: SpyConnectionAdapter.java
===================================================================
RCS file: /home/cvs/jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/remote/SpyConnectionAdapter.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SpyConnectionAdapter.java 6 Mar 2002 14:01:52 -0000 1.1
+++ SpyConnectionAdapter.java 31 Mar 2002 16:46:02 -0000 1.2
@@ -42,13 +42,29 @@
}
/**
- * Write user spy message.
+ * Write user request.
*/
- public void write(final String msg) throws IOException {
+ public void request(final String msg) throws IOException {
SpyConnectionInterface spy = mSpy;
if(spy != null) {
try {
- spy.write(msg);
+ spy.request(msg);
+ }
+ catch(RemoteException ex) {
+ mSpy = null;
+ }
+ }
+ }
+
+
+ /**
+ * Write server response.
+ */
+ public void response(final String msg) throws IOException {
+ SpyConnectionInterface spy = mSpy;
+ if(spy != null) {
+ try {
+ spy.response(msg);
}
catch(RemoteException ex) {
mSpy = null;
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>