Added initial SCGI server and a handler for serving JARs from the filesystem.
[jsvc.git] / src / dolda / jsvc / util / ResponseBuffer.java
index 83e91cd..96d4563 100644 (file)
@@ -6,8 +6,8 @@ import java.util.*;
 
 public abstract class ResponseBuffer implements ResettableRequest {
     private boolean flushed = false;
-    private int respcode = -1;
-    private String resptext = null;
+    protected int respcode = -1;
+    protected String resptext = null;
     private OutputStream out = null, wrapout = null;
     private MultiMap<String, String> headers;
     
@@ -31,7 +31,7 @@ public abstract class ResponseBuffer implements ResettableRequest {
            throw(new IllegalStateException("Response has been flushed; header information cannot be modified"));
     }
     
-    private void flush() {
+    private void flush() throws IOException {
        if(flushed)
            return;
        if(respcode < 0) {
@@ -100,6 +100,6 @@ public abstract class ResponseBuffer implements ResettableRequest {
        init();
     }
     
-    protected abstract void backflush();
+    protected abstract void backflush() throws IOException;
     protected abstract OutputStream realoutput();
 }