Class AbstractWriterInterceptorContext

  • All Implemented Interfaces:
    javax.ws.rs.ext.InterceptorContext, javax.ws.rs.ext.WriterInterceptorContext
    Direct Known Subclasses:
    ClientWriterInterceptorContext, ServerWriterInterceptorContext

    public abstract class AbstractWriterInterceptorContext
    extends java.lang.Object
    implements javax.ws.rs.ext.WriterInterceptorContext
    Version:
    $Revision: 1 $
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractWriterInterceptorContext​(javax.ws.rs.ext.WriterInterceptor[] interceptors, java.lang.annotation.Annotation[] annotations, java.lang.Object entity, java.lang.reflect.Type genericType, javax.ws.rs.core.MediaType mediaType, java.lang.Class type, java.io.OutputStream outputStream, ResteasyProviderFactory providerFactory, javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> headers)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.annotation.Annotation[] getAnnotations()  
      java.lang.Object getEntity()  
      java.lang.reflect.Type getGenericType()  
      javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> getHeaders()  
      javax.ws.rs.core.MediaType getMediaType()  
      java.io.OutputStream getOutputStream()  
      java.lang.Class getType()  
      protected javax.ws.rs.ext.MessageBodyWriter getWriter()  
      void proceed()  
      protected abstract javax.ws.rs.ext.MessageBodyWriter resolveWriter()  
      void setAnnotations​(java.lang.annotation.Annotation[] annotations)  
      void setEntity​(java.lang.Object entity)  
      void setGenericType​(java.lang.reflect.Type genericType)  
      void setMediaType​(javax.ws.rs.core.MediaType mediaType)  
      void setOutputStream​(java.io.OutputStream outputStream)  
      void setType​(java.lang.Class type)  
      (package private) abstract void throwWriterNotFoundException()  
      protected void writeTo​(javax.ws.rs.ext.MessageBodyWriter writer)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.ws.rs.ext.InterceptorContext

        getProperty, getPropertyNames, removeProperty, setProperty
    • Field Detail

      • interceptors

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

        protected java.lang.Object entity
      • type

        protected java.lang.Class type
      • genericType

        protected java.lang.reflect.Type genericType
      • annotations

        protected java.lang.annotation.Annotation[] annotations
      • mediaType

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

        protected javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> headers
      • outputStream

        protected java.io.OutputStream outputStream
      • index

        protected int index
    • Constructor Detail

      • AbstractWriterInterceptorContext

        public AbstractWriterInterceptorContext​(javax.ws.rs.ext.WriterInterceptor[] interceptors,
                                                java.lang.annotation.Annotation[] annotations,
                                                java.lang.Object entity,
                                                java.lang.reflect.Type genericType,
                                                javax.ws.rs.core.MediaType mediaType,
                                                java.lang.Class type,
                                                java.io.OutputStream outputStream,
                                                ResteasyProviderFactory providerFactory,
                                                javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> headers)
    • Method Detail

      • getEntity

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

        public void setEntity​(java.lang.Object entity)
        Specified by:
        setEntity in interface javax.ws.rs.ext.WriterInterceptorContext
      • getType

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

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

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

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

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

        public void setAnnotations​(java.lang.annotation.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
      • getHeaders

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

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

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

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

        protected void writeTo​(javax.ws.rs.ext.MessageBodyWriter writer)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • getWriter

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

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

        abstract void throwWriterNotFoundException()