public void setContentLengthLong(long length) { if (isCommitted()) return; // Ignore any call from an included servlet if (included) return; if (usingWriter) return; coyoteResponse.setContentLength(length); }
/* */ public void setHeader(String name, String value) /* */ { /* 1288 */ if (isCommitted()) { /* 1289 */ return; /* */ } /* */ /* 1292 */ if (this.included) { /* 1293 */ return; /* */ } /* 1295 */ this.coyoteResponse.setHeader(name, value); /* */ } /* */
/** * Reset the data buffer but not any status or header information. * * @exception IllegalStateException if the response has already * been committed */ public void resetBuffer() { if (isCommitted()) throw new IllegalStateException (sm.getString("coyoteResponse.resetBuffer.ise")); outputBuffer.reset(); }
/** * Reset the data buffer but not any status or header information. * * @exception IllegalStateException if the response has already * been committed */ public void resetBuffer() { if (isCommitted()) throw new IllegalStateException (sm.getString("coyoteResponse.resetBuffer.ise")); outputBuffer.reset(); }
/* */ public void resetBuffer() /* */ { /* 665 */ if (isCommitted()) { /* 666 */ throw new IllegalStateException(sm.getString("coyoteResponse.resetBuffer.ise")); /* */ } /* */ /* 669 */ this.outputBuffer.reset(); /* */ } /* */
@Override public void setContentLengthLong(long length) { if (isCommitted()) { return; } // Ignore any call from an included servlet if (included) { return; } getCoyoteResponse().setContentLength(length); }
/** * Reset the data buffer but not any status or header information. * * @exception IllegalStateException if the response has already * been committed */ public void resetBuffer() { if (isCommitted()) throw MESSAGES.cannotResetBuffer(); outputBuffer.reset(); }
@Override public void setContentLengthLong(long length) { if (isCommitted()) { return; } // Ignore any call from an included servlet if (included) { return; } getCoyoteResponse().setContentLength(length); }
/** * Application commit flag accessor. * * @return <code>true</code> if the application has committed the response */ public boolean isAppCommitted() { return this.appCommitted || isCommitted() || isSuspended() || ((getContentLength() > 0) && (getContentWritten() >= getContentLength())); }
/** * Application commit flag accessor. */ public boolean isAppCommitted() { return (this.appCommitted || isCommitted() || isSuspended() || ((getContentLength() > 0) && (getContentCount() >= getContentLength()))); }
/** * Application commit flag accessor. */ public boolean isAppCommitted() { return (this.appCommitted || isCommitted() || isSuspended() || ((getContentLength() > 0) && (getContentCount() >= getContentLength()))); }
/** * Application commit flag accessor. */ public boolean isAppCommitted() { return (this.appCommitted || isCommitted() || isSuspended() || ((getContentLength() > 0) && (getContentWritten() >= getContentLength()))); }
/** * Application commit flag accessor. */ public boolean isAppCommitted() { return (this.appCommitted || isCommitted() || isSuspended() || ((getContentLength() > 0) && (getContentWritten() >= getContentLength()))); }
/** * Application commit flag accessor. */ public boolean isAppCommitted() { return (this.appCommitted || isCommitted() || isSuspended() || ((getContentLength() > 0) && (getContentWritten() >= getContentLength()))); }
/** * Application commit flag accessor. */ public boolean isAppCommitted() { return this.appCommitted || isCommitted() || isSuspended() || getContentLength() > 0 && getContentCount() >= getContentLength(); }
/** * Application commit flag accessor. */ public boolean isAppCommitted() { return (this.appCommitted || isCommitted() || isSuspended() || ((getContentLength() > 0) && (getContentWritten() >= getContentLength()))); }
/* */ public boolean isAppCommitted() /* */ { /* 324 */ return (this.appCommitted) || (isCommitted()) || (isSuspended()) || ((getContentLength() > 0) && (getContentCount() >= getContentLength())); /* */ } /* */
/** * Application commit flag accessor. */ public boolean isAppCommitted() { return (this.appCommitted || isCommitted() || isSuspended() || ((getContentLength() > 0) && (getContentCount() >= getContentLength()))); }
/** * Application commit flag accessor. * * @return <code>true</code> if the application has committed the response */ public boolean isAppCommitted() { return this.appCommitted || isCommitted() || isSuspended() || ((getContentLength() > 0) && (getContentWritten() >= getContentLength())); }
public void startUpgrade() { if (isCommitted()) throw MESSAGES.cannotSendUpgrade(); if (!connector.hasIoEvents()) throw MESSAGES.cannotUpgradeWithoutEvents(); // Ignore any call from an included servlet if (included) return; request.getCoyoteRequest().action(ActionCode.UPGRADE, null); }