Class AbstractWriterInterceptorContext

java.lang.Object
org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext
All Implemented Interfaces:
javax.ws.rs.ext.InterceptorContext, javax.ws.rs.ext.WriterInterceptorContext
Direct Known Subclasses:
ClientWriterInterceptorContext, ServerWriterInterceptorContext

public abstract class AbstractWriterInterceptorContext extends Object implements javax.ws.rs.ext.WriterInterceptorContext
Version:
$Revision: 1 $
  • Field Details

    • interceptors

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

      protected Object entity
    • type

      protected Class type
    • genericType

      protected Type genericType
    • annotations

      protected Annotation[] annotations
    • mediaType

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

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

      protected OutputStream outputStream
    • index

      protected int index
    • providerFactory

      protected ResteasyProviderFactory providerFactory
  • Constructor Details

    • AbstractWriterInterceptorContext

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

    • getEntity

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

      public void setEntity(Object entity)
      Specified by:
      setEntity in interface javax.ws.rs.ext.WriterInterceptorContext
    • 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
    • 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
    • setOutputStream

      public void setOutputStream(OutputStream outputStream)
      Specified by:
      setOutputStream in interface javax.ws.rs.ext.WriterInterceptorContext
    • 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
    • writeTo

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

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

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

      abstract void throwWriterNotFoundException()