Class StreamingOutputProvider
- java.lang.Object
-
- org.glassfish.jersey.message.internal.StreamingOutputProvider
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>
@Produces({"application/octet-stream","*/*"}) @Singleton public final class StreamingOutputProvider extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>Message body writer that supportsstreaming outputmarshalling.- Author:
- Paul Sandoz
-
-
Constructor Summary
Constructors Constructor Description StreamingOutputProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(jakarta.ws.rs.core.StreamingOutput o, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)booleanisWriteable(Class<?> t, Type gt, Annotation[] as, jakarta.ws.rs.core.MediaType mediaType)voidwriteTo(jakarta.ws.rs.core.StreamingOutput o, Class<?> t, Type gt, Annotation[] as, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entity)
-
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class<?> t, Type gt, Annotation[] as, jakarta.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>
-
getSize
public long getSize(jakarta.ws.rs.core.StreamingOutput o, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)- Specified by:
getSizein interfacejakarta.ws.rs.ext.MessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>
-
writeTo
public void writeTo(jakarta.ws.rs.core.StreamingOutput o, Class<?> t, Type gt, Annotation[] as, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entity) throws IOException- Specified by:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<jakarta.ws.rs.core.StreamingOutput>- Throws:
IOException
-
-