Class StreamingResponseProvider<T>

java.lang.Object
org.apache.cxf.jaxrs.provider.AbstractConfigurableProvider
org.apache.cxf.jaxrs.provider.StreamingResponseProvider<T>
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<StreamingResponse<T>>

public class StreamingResponseProvider<T> extends AbstractConfigurableProvider implements jakarta.ws.rs.ext.MessageBodyWriter<StreamingResponse<T>>
  • Constructor Details

    • StreamingResponseProvider

      public StreamingResponseProvider()
  • Method Details

    • isWriteable

      public boolean isWriteable(Class<?> cls, Type type, Annotation[] anns, jakarta.ws.rs.core.MediaType mt)
      Specified by:
      isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<T>
    • writeTo

      public void writeTo(StreamingResponse<T> p, Class<?> cls, Type t, Annotation[] anns, jakarta.ws.rs.core.MediaType mt, jakarta.ws.rs.core.MultivaluedMap<String,Object> headers, OutputStream os) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<T>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException
    • getSize

      public long getSize(StreamingResponse<T> arg0, Class<?> arg1, Type arg2, Annotation[] arg3, jakarta.ws.rs.core.MediaType arg4)
      Specified by:
      getSize in interface jakarta.ws.rs.ext.MessageBodyWriter<T>