@Override
    public void setWriteListener(WriteListener listener) {
        if (response != null) {
            try {
                ((CoyoteOutputStream) response.getOutputStream()).setWriteListener(listener);
            } catch (IOException e) {
                log.error("got exception when set write listener", e);
            }
        }
    }
Wrapper output stream
When writing character data, write the data into the output stream of OutputStream and HttpServletResponse object at the same time.
inlong-manager/manager-web/src/main/java/org/apache/inlong/manager/web/trace/WrapperOutputStream.java