Class AbstractWriterInterceptorContext

    • Field Detail

      • interceptors

        protected[] interceptors
      • requireAsyncIO

        protected boolean requireAsyncIO
      • entity

        protected Object entity
      • type

        protected Class type
      • genericType

        protected Type genericType
      • mediaType

        protected mediaType
      • headers

        protected<String,​Object> headers
      • index

        protected int index
    • Method Detail

      • getProcessedInterceptorCount

        public int getProcessedInterceptorCount()
      • getType

        public Class getType()
        Specified by:
        getType in interface
      • setType

        public void setType​(Class type)
        Specified by:
        setType in interface
      • getGenericType

        public Type getGenericType()
        Specified by:
        getGenericType in interface
      • setGenericType

        public void setGenericType​(Type genericType)
        Specified by:
        setGenericType in interface
      • getAnnotations

        public Annotation[] getAnnotations()
        Specified by:
        getAnnotations in interface
      • setAnnotations

        public void setAnnotations​(Annotation[] annotations)
        Specified by:
        setAnnotations in interface
      • getMediaType

        public getMediaType()
        Specified by:
        getMediaType in interface
      • setMediaType

        public void setMediaType​( mediaType)
        Specified by:
        setMediaType in interface
      • getOutputStream

        public OutputStream getOutputStream()
        Specified by:
        getOutputStream in interface
      • setOutputStream

        public void setOutputStream​(OutputStream outputStream)
        Specified by:
        setOutputStream in interface
      • 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
        asyncOutputStream - new async output stream for the object to be written.
      • preferAsyncIo

        protected boolean preferAsyncIo()
      • proceed

        public void proceed()
                     throws IOException,
        Specified by:
        proceed in interface
      • traceBefore

        protected final void traceBefore​( interceptor)
      • traceAfter

        protected final void traceAfter​( interceptor)
      • getWriter

        protected getWriter()
      • resolveWriter

        protected abstract resolveWriter()