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;
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) {
init();
}
- protected abstract void backflush();
+ protected abstract void backflush() throws IOException;
protected abstract OutputStream realoutput();
}