simplify isreadable and iswriteable
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 29 May 2007 16:54:27 +0000 (16:54 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 29 May 2007 16:54:27 +0000 (16:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@542589 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/connector/CometEventImpl.java

index f2d6d06..7004e3c 100644 (file)
@@ -84,9 +84,6 @@ public class CometEventImpl implements CometEvent {
 
     private static final Object threadCheckHolder = new Object();
     
-    protected boolean readable = false;
-    
-    protected boolean writeable = false;
     // --------------------------------------------------------- Public Methods
 
     /**
@@ -139,19 +136,10 @@ public class CometEventImpl implements CometEvent {
     }
     
     public boolean isReadable() {
-        return readable;
-    }
-    
-    public void setReadable(boolean r) {
-        this.readable = r;
-    }
-    
+        return request.isReadable();
+    }    
     public boolean isWriteable() {
-        return writeable;
-    }
-    
-    public void setWriteable(boolean w) {
-        this.writeable = w;
+        return response.isWriteable();
     }
     
     public void configure(CometEvent.CometConfiguration... options)