Class WriterInterceptorContextImpl

All Implemented Interfaces:
jakarta.ws.rs.ext.InterceptorContext, jakarta.ws.rs.ext.WriterInterceptorContext

public class WriterInterceptorContextImpl extends AbstractInterceptorContextImpl implements jakarta.ws.rs.ext.WriterInterceptorContext
  • Constructor Details

    • WriterInterceptorContextImpl

      public WriterInterceptorContextImpl(Object entity, Class<?> cls, Type type, Annotation[] anns, OutputStream os, org.apache.cxf.message.Message message, List<jakarta.ws.rs.ext.WriterInterceptor> writers)
  • Method Details

    • getEntity

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

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

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

      public void proceed() throws IOException
      Specified by:
      proceed in interface jakarta.ws.rs.ext.WriterInterceptorContext
      Throws:
      IOException
    • setEntity

      public void setEntity(Object object)
      Specified by:
      setEntity in interface jakarta.ws.rs.ext.WriterInterceptorContext
    • setOutputStream

      public void setOutputStream(OutputStream stream)
      Specified by:
      setOutputStream in interface jakarta.ws.rs.ext.WriterInterceptorContext
    • 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 mt)
      Specified by:
      setMediaType in interface jakarta.ws.rs.ext.InterceptorContext