Class 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 Detail

      • StreamingOutputMessageBodyWriter

        public StreamingOutputMessageBodyWriter()
    • Method Detail

      • 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>
      • 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