Interface MessageBodyWriterContext

  • All Known Implementing Classes:
    WriterInterceptorRegistry.MessageBodyWriterContextFacade

    @Deprecated
    public interface MessageBodyWriterContext
    Deprecated.
    The Resteasy interceptor facility introduced in release 2.x is replaced by the JAX-RS 2.0 compliant interceptor facility in release 3.0.x.
    Version:
    $Revision: 1 $
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.annotation.Annotation[] getAnnotations()
      Deprecated.
       
      java.lang.Object getAttribute​(java.lang.String attribute)
      Deprecated.
      Allows you to pass values back and forth between interceptors On the server side, this is the HttpRequest attributes, on the client side, this is the ClientRequest/ClientResponse attributes.
      java.lang.Object getEntity()
      Deprecated.
       
      java.lang.reflect.Type getGenericType()
      Deprecated.
       
      javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> getHeaders()
      Deprecated.
       
      javax.ws.rs.core.MediaType getMediaType()
      Deprecated.
       
      java.io.OutputStream getOutputStream()
      Deprecated.
       
      java.lang.Class getType()
      Deprecated.
       
      void proceed()
      Deprecated.
       
      void removeAttribute​(java.lang.String name)
      Deprecated.
       
      void setAnnotations​(java.lang.annotation.Annotation[] annotations)
      Deprecated.
       
      void setAttribute​(java.lang.String name, java.lang.Object value)
      Deprecated.
       
      void setEntity​(java.lang.Object entity)
      Deprecated.
       
      void setGenericType​(java.lang.reflect.Type genericType)
      Deprecated.
       
      void setMediaType​(javax.ws.rs.core.MediaType mediaType)
      Deprecated.
       
      void setOutputStream​(java.io.OutputStream os)
      Deprecated.
       
      void setType​(java.lang.Class type)
      Deprecated.
       
    • Method Detail

      • getEntity

        java.lang.Object getEntity()
        Deprecated.
      • setEntity

        void setEntity​(java.lang.Object entity)
        Deprecated.
      • getType

        java.lang.Class getType()
        Deprecated.
      • setType

        void setType​(java.lang.Class type)
        Deprecated.
      • getGenericType

        java.lang.reflect.Type getGenericType()
        Deprecated.
      • setGenericType

        void setGenericType​(java.lang.reflect.Type genericType)
        Deprecated.
      • getAnnotations

        java.lang.annotation.Annotation[] getAnnotations()
        Deprecated.
      • setAnnotations

        void setAnnotations​(java.lang.annotation.Annotation[] annotations)
        Deprecated.
      • getMediaType

        javax.ws.rs.core.MediaType getMediaType()
        Deprecated.
      • setMediaType

        void setMediaType​(javax.ws.rs.core.MediaType mediaType)
        Deprecated.
      • getHeaders

        javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> getHeaders()
        Deprecated.
      • getOutputStream

        java.io.OutputStream getOutputStream()
        Deprecated.
      • setOutputStream

        void setOutputStream​(java.io.OutputStream os)
        Deprecated.
      • getAttribute

        java.lang.Object getAttribute​(java.lang.String attribute)
        Deprecated.
        Allows you to pass values back and forth between interceptors On the server side, this is the HttpRequest attributes, on the client side, this is the ClientRequest/ClientResponse attributes.
        Returns:
      • setAttribute

        void setAttribute​(java.lang.String name,
                          java.lang.Object value)
        Deprecated.
      • removeAttribute

        void removeAttribute​(java.lang.String name)
        Deprecated.
      • proceed

        void proceed()
              throws java.io.IOException,
                     javax.ws.rs.WebApplicationException
        Deprecated.
        Throws:
        java.io.IOException
        javax.ws.rs.WebApplicationException