Class WriterInterceptorContextImpl

  • All Implemented Interfaces:
    javax.ws.rs.ext.InterceptorContext, javax.ws.rs.ext.WriterInterceptorContext

    public class WriterInterceptorContextImpl
    extends AbstractInterceptorContextImpl
    implements javax.ws.rs.ext.WriterInterceptorContext
    • Constructor Detail

      • WriterInterceptorContextImpl

        public WriterInterceptorContextImpl​(Object entity,
                                            Class<?> cls,
                                            Type type,
                                            Annotation[] anns,
                                            OutputStream os,
                                            org.apache.cxf.message.Message message,
                                            List<javax.ws.rs.ext.WriterInterceptor> writers)
    • Method Detail

      • getEntity

        public Object getEntity()
        Specified by:
        getEntity in interface javax.ws.rs.ext.WriterInterceptorContext
      • getHeaders

        public javax.ws.rs.core.MultivaluedMap<String,​Object> getHeaders()
        Specified by:
        getHeaders in interface javax.ws.rs.ext.WriterInterceptorContext
      • getOutputStream

        public OutputStream getOutputStream()
        Specified by:
        getOutputStream in interface javax.ws.rs.ext.WriterInterceptorContext
      • proceed

        public void proceed()
                     throws IOException
        Specified by:
        proceed in interface javax.ws.rs.ext.WriterInterceptorContext
        Throws:
        IOException
      • setEntity

        public void setEntity​(Object object)
        Specified by:
        setEntity in interface javax.ws.rs.ext.WriterInterceptorContext
      • setOutputStream

        public void setOutputStream​(OutputStream stream)
        Specified by:
        setOutputStream in interface javax.ws.rs.ext.WriterInterceptorContext
      • getMediaType

        public javax.ws.rs.core.MediaType getMediaType()
        Specified by:
        getMediaType in interface javax.ws.rs.ext.InterceptorContext
      • setMediaType

        public void setMediaType​(javax.ws.rs.core.MediaType mt)
        Specified by:
        setMediaType in interface javax.ws.rs.ext.InterceptorContext