cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <>
Subject [jira] [Created] (CXF-6544) OutputStream#close not called for WriterInterceptor
Date Sat, 15 Aug 2015 22:23:45 GMT
Romain Manni-Bucau created CXF-6544:

             Summary: OutputStream#close not called for WriterInterceptor
                 Key: CXF-6544
             Project: CXF
          Issue Type: Bug
            Reporter: Romain Manni-Bucau


close() is called later in the JAXRS client lifecycle so no way to add code properly at this

                .register(new WriterInterceptor() {
                    public void aroundWriteTo(final WriterInterceptorContext writerInterceptorContext)
throws IOException, WebApplicationException {
                        writerInterceptorContext.setOutputStream(new FilterOutputStream(writerInterceptorContext.getOutputStream())
                            public void close() throws IOException {
                                // need code here

Overall idea can need more work since i'd like to be able to add a final trailer to a HTTP
chunk communication.

Managed to do it with httpclient but I'd like to stick to JAXRS 2 if possible.

This message was sent by Atlassian JIRA

View raw message