Class AbstractWriterInterceptorContext

    • Field Detail

      • interceptors

        protected javax.ws.rs.ext.WriterInterceptor[] interceptors
      • requireAsyncIO

        protected boolean requireAsyncIO
      • entity

        protected Object entity
      • type

        protected Class type
      • genericType

        protected Type genericType
      • mediaType

        protected javax.ws.rs.core.MediaType mediaType
      • headers

        protected javax.ws.rs.core.MultivaluedMap<String,​Object> headers
      • index

        protected int index
    • Method Detail

      • getProcessedInterceptorCount

        public int getProcessedInterceptorCount()
      • getType

        public Class getType()
        Specified by:
        getType in interface javax.ws.rs.ext.InterceptorContext
      • setType

        public void setType​(Class type)
        Specified by:
        setType in interface javax.ws.rs.ext.InterceptorContext
      • getGenericType

        public Type getGenericType()
        Specified by:
        getGenericType in interface javax.ws.rs.ext.InterceptorContext
      • setGenericType

        public void setGenericType​(Type genericType)
        Specified by:
        setGenericType in interface javax.ws.rs.ext.InterceptorContext
      • getAnnotations

        public Annotation[] getAnnotations()
        Specified by:
        getAnnotations in interface javax.ws.rs.ext.InterceptorContext
      • setAnnotations

        public void setAnnotations​(Annotation[] annotations)
        Specified by:
        setAnnotations in interface javax.ws.rs.ext.InterceptorContext
      • 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 mediaType)
        Specified by:
        setMediaType in interface javax.ws.rs.ext.InterceptorContext
      • getOutputStream

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

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

        public void setAsyncOutputStream​(AsyncOutputStream asyncOutputStream)
        Description copied from interface: AsyncWriterInterceptorContext
        Set a new async output stream for the object to be written. For example, by wrapping it with another async output stream. The runtime is responsible for closing the async output stream that is set.
        Specified by:
        setAsyncOutputStream in interface AsyncWriterInterceptorContext
        Parameters:
        asyncOutputStream - new async output stream for the object to be written.
      • preferAsyncIo

        protected boolean preferAsyncIo()
      • proceed

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

        protected final void traceBefore​(javax.ws.rs.ext.WriterInterceptor interceptor)
      • traceAfter

        protected final void traceAfter​(javax.ws.rs.ext.WriterInterceptor interceptor)
      • getWriter

        protected javax.ws.rs.ext.MessageBodyWriter getWriter()
      • resolveWriter

        protected abstract javax.ws.rs.ext.MessageBodyWriter resolveWriter()