@Produces(value="*/*") public class StreamingOutputProvider extends Object implements javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>
Constructor and Description |
---|
StreamingOutputProvider() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(javax.ws.rs.core.StreamingOutput streamingOutput,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
writeTo(javax.ws.rs.core.StreamingOutput streamingOutput,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>
public long getSize(javax.ws.rs.core.StreamingOutput streamingOutput, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>
public void writeTo(javax.ws.rs.core.StreamingOutput streamingOutput, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>
IOException
Copyright © 2015 JBoss by Red Hat. All rights reserved.