/** * Prevents flushing buffer if buffering enabled. */ @Override public void flushBuffer() throws IOException { if (buffer == null) { super.flushBuffer(); } }
@Override public void flushBuffer() throws IOException { super.flushBuffer(); }
/** * Makes sure {@link OnCommittedResponseWrapper#onResponseCommitted()} is invoked * before calling the superclass <code>flushBuffer()</code>. * @throws IOException if an input or output exception occurred */ @Override public void flushBuffer() throws IOException { doOnResponseCommitted(); super.flushBuffer(); }
@Override public void flushBuffer() throws IOException { sendErrorIfNecessary(); super.flushBuffer(); }
/** * Copy the cached body content to the response. * @param complete whether to set a corresponding content length * for the complete cached body content * @since 4.2 */ protected void copyBodyToResponse(boolean complete) throws IOException { if (this.content.size() > 0) { HttpServletResponse rawResponse = (HttpServletResponse) getResponse(); if ((complete || this.contentLength != null) && !rawResponse.isCommitted()) { rawResponse.setContentLength(complete ? this.content.size() : this.contentLength); this.contentLength = null; } this.content.writeTo(rawResponse.getOutputStream()); this.content.reset(); if (complete) { super.flushBuffer(); } } }
/** * Copy the cached body content to the response. * @param complete whether to set a corresponding content length * for the complete cached body content * @since 4.2 */ protected void copyBodyToResponse(boolean complete) throws IOException { if (this.content.size() > 0) { HttpServletResponse rawResponse = (HttpServletResponse) getResponse(); if ((complete || this.contentLength != null) && !rawResponse.isCommitted()) { rawResponse.setContentLength(complete ? this.content.size() : this.contentLength); this.contentLength = null; } this.content.writeTo(rawResponse.getOutputStream()); this.content.reset(); if (complete) { super.flushBuffer(); } } }
@Override public void flushBuffer() throws IOException { byte[] bytes = getBodyBytes(); if (bytes != null) { getOutputStream().write(bytes, 0, getBodyBytesLength()); } super.flushBuffer(); }
@Override public void flushBuffer() throws IOException { super.flushBuffer(); }
public void flushBuffer() throws IOException { if (!bufferResponse) super.flushBuffer(); else committed = true; }
/** * Prevent buffer from being flushed if this is a page being parsed. */ @Override public void flushBuffer() throws IOException { if (!gzippablePage) { log.debug("Flushing buffer"); super.flushBuffer(); } }
@Override public void flushBuffer() throws IOException { if (writer != null) { writer.flush(); } if (stream != null) { stream.flush(); } super.flushBuffer(); }
@Override public void flushBuffer() throws IOException { if (isEnabled()) { super.flushBuffer(); } }
@Override public void flushBuffer() throws IOException { if (isEnabled()) { super.flushBuffer(); } }
@Override public void flushBuffer() throws IOException { super.setContentType(contentType); super.flushBuffer(); }
@Override public void flushBuffer() throws IOException { this.checkState(); super.flushBuffer(); }
@Override public void flushBuffer() throws IOException { closeThrowingWriter(); super.flushBuffer(); }
@Override public void flushBuffer() throws IOException { if (isEnabled()) { super.flushBuffer(); } }
@Override public void flushBuffer() throws IOException { tracer.log("Response.flushBuffer()"); tracer.logResponseFlush(); super.flushBuffer(); }
@Override public void flushBuffer() throws IOException { byte[] bytes = getBodyBytes(); if (bytes != null) { getOutputStream().write(bytes, 0, getBodyBytesLength()); } super.flushBuffer(); } }
/** * @see javax.servlet.ServletResponseWrapper#flushBuffer() */ @Override public void flushBuffer() throws IOException { if (OpenCms.getSystemInfo().getServletContainerSettings().isPreventResponseFlush()) { // Websphere does not allow to set headers afterwards, so we have to prevent this call return; } super.flushBuffer(); }