@ Override public void setContentType ( final String type ) { super . setContentType ( type ) ; contentTypeResolver = new ContentTypeHeaderResolver ( type ) ; if ( bufferContentType ( type , contentTypeResolver . getMimeType ( ) , contentTypeResolver . getEncoding ( ) ) ) { enableBuffering ( ) ; } else { disableBuffering ( ) ; } }
Sets the content type and enables or disables buffering .