add in flags for readable or writeable
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 28 May 2007 15:20:46 +0000 (15:20 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 28 May 2007 15:20:46 +0000 (15:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@542250 13f79535-47bb-0310-9956-ffa450edef68

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

index 27a0236..df76d56 100644 (file)
@@ -82,6 +82,10 @@ public class CometEventImpl implements CometEvent {
     protected WorkerThreadCheck threadCheck = new WorkerThreadCheck();
 
     private static final Object threadCheckHolder = new Object();
+    
+    protected boolean readable = false;
+    
+    protected boolean writeable = false;
     // --------------------------------------------------------- Public Methods
 
     /**
@@ -134,11 +138,19 @@ public class CometEventImpl implements CometEvent {
     }
     
     public boolean isReadable() {
-        throw new UnsupportedOperationException();
+        return readable;
+    }
+    
+    public void setReadable(boolean r) {
+        this.readable = r;
     }
     
     public boolean isWriteable() {
-        throw new UnsupportedOperationException();
+        return writeable;
+    }
+    
+    public void setWriteable(boolean w) {
+        this.writeable = w;
     }
     
     public void configure(CometEvent.CometConfiguration... options)