Example usage for javax.servlet ServletResponse setBufferSize

List of usage examples for javax.servlet ServletResponse setBufferSize

Introduction

In this page you can find the example usage for javax.servlet ServletResponse setBufferSize.

Prototype

public void setBufferSize(int size);

Source Link

Document

Sets the preferred buffer size for the body of the response.

Usage

From source file:org.kuali.rice.krad.web.filter.SetResponseBufferSizeFilter.java

/**
 * Sets the bufferSize of the response./*w  w  w . ja v a2  s  . c  o  m*/
 * 
 * @see Filter#doFilter
 */
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
        throws IOException, ServletException {
    if (log.isDebugEnabled()) {
        log.debug("setting response buffer size to " + bufferSize);
    }
    servletResponse.setBufferSize(bufferSize);
    filterChain.doFilter(servletRequest, servletResponse);
}