- Expose the closed flag.
authorremm <remm@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 16 Aug 2006 22:29:09 +0000 (22:29 +0000)
committerremm <remm@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 16 Aug 2006 22:29:09 +0000 (22:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@432054 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/connector/OutputBuffer.java
java/org/apache/catalina/connector/Response.java

index 47b0ae0..9ea4b1c 100644 (file)
@@ -201,6 +201,16 @@ public class OutputBuffer extends Writer
     }
 
 
+    /**
+     * Is the response output closed ?
+     * 
+     * @return closed flag value
+     */
+    public boolean isClosed() {
+        return this.closed;
+    }
+
+
     // --------------------------------------------------------- Public Methods
 
 
index a132496..9b9c836 100644 (file)
@@ -433,6 +433,14 @@ public class Response
 
 
     /**
+     * Closed flag accessor.
+     */
+    public boolean isClosed() {
+        return outputBuffer.isClosed();
+    }
+
+
+    /**
      * Set the error flag.
      */
     public void setError() {