Class AbstractWriterInterceptorContext

    • Field Detail

      • interceptors

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

        protected boolean requireAsyncIO
      • entity

        protected Object entity
      • type

        protected Class type
      • genericType

        protected Type genericType
      • mediaType

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

        protected jakarta.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 jakarta.ws.rs.ext.InterceptorContext
      • setType

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

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

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

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

        public void setAnnotations​(Annotation[] annotations)
        Specified by:
        setAnnotations in interface jakarta.ws.rs.ext.InterceptorContext
      • getMediaType

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

        public void setMediaType​(jakarta.ws.rs.core.MediaType mediaType)
        Specified by:
        setMediaType in interface jakarta.ws.rs.ext.InterceptorContext
      • getOutputStream

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

        public void setOutputStream​(OutputStream outputStream)
        Specified by:
        setOutputStream in interface jakarta.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,
                            jakarta.ws.rs.WebApplicationException
        Specified by:
        proceed in interface jakarta.ws.rs.ext.WriterInterceptorContext
        Throws:
        IOException
        jakarta.ws.rs.WebApplicationException
      • traceBefore

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

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

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

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