@Produces(value="text/event-stream") public class SseMessageBodyReader extends Object implements javax.ws.rs.ext.MessageBodyReader<org.reactivestreams.Publisher<?>>
Constructor and Description |
---|
SseMessageBodyReader() |
Modifier and Type | Method and Description |
---|---|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
org.reactivestreams.Publisher<?> |
readFrom(Class<org.reactivestreams.Publisher<?>> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<org.reactivestreams.Publisher<?>>
public org.reactivestreams.Publisher<?> readFrom(Class<org.reactivestreams.Publisher<?>> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<org.reactivestreams.Publisher<?>>
IOException
javax.ws.rs.WebApplicationException
Apache CXF