From: fhanik Date: Tue, 29 May 2007 16:54:27 +0000 (+0000) Subject: simplify isreadable and iswriteable X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a8797973d13fe61cc66475306d10821b0a9b1956;p=tomcat7.0 simplify isreadable and iswriteable git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@542589 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/connector/CometEventImpl.java b/java/org/apache/catalina/connector/CometEventImpl.java index f2d6d0675..7004e3c7d 100644 --- a/java/org/apache/catalina/connector/CometEventImpl.java +++ b/java/org/apache/catalina/connector/CometEventImpl.java @@ -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)