Class StreamingOutputMessageBodyWriter

java.lang.Object
org.jboss.resteasy.reactive.server.providers.serialisers.StreamingOutputMessageBodyWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>, ServerMessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>

public class StreamingOutputMessageBodyWriter extends Object implements ServerMessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>
  • Constructor Details

    • StreamingOutputMessageBodyWriter

      public StreamingOutputMessageBodyWriter()
  • Method Details

    • isWriteable

      public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>
    • isWriteable

      public boolean isWriteable(Class<?> type, Type genericType, ResteasyReactiveResourceInfo target, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      isWriteable in interface ServerMessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>
    • getSize

      public long getSize(jakarta.ws.rs.core.StreamingOutput streamingOutput, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      getSize in interface jakarta.ws.rs.ext.MessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>
    • writeTo

      public void writeTo(jakarta.ws.rs.core.StreamingOutput streamingOutput, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException
    • writeResponse

      public void writeResponse(jakarta.ws.rs.core.StreamingOutput o, Type genericType, ServerRequestContext context) throws jakarta.ws.rs.WebApplicationException, IOException
      Specified by:
      writeResponse in interface ServerMessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>
      Throws:
      jakarta.ws.rs.WebApplicationException
      IOException