Package org.apache.cxf.jaxrs.provider
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>>
-
Field Summary
Fields inherited from class org.apache.cxf.jaxrs.provider.AbstractConfigurableProvider
BUNDLE, LOG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(StreamingResponse<T> arg0, Class<?> arg1, Type arg2, Annotation[] arg3, jakarta.ws.rs.core.MediaType arg4) boolean
isWriteable
(Class<?> cls, Type type, Annotation[] anns, jakarta.ws.rs.core.MediaType mt) 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) Methods inherited from class org.apache.cxf.jaxrs.provider.AbstractConfigurableProvider
getBus, getConsumeMediaTypes, getEnableBuffering, getEnableStreaming, getProduceMediaTypes, init, isPayloadEmpty, isPayloadEmpty, reportEmptyContentLength, setBus, setConsumeMediaTypes, setEnableBuffering, setEnableStreaming, setProduceMediaTypes
-
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 interfacejakarta.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 interfacejakarta.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 interfacejakarta.ws.rs.ext.MessageBodyWriter<T>
-