Class SseMessageBodyReader
- java.lang.Object
-
- org.apache.cxf.microprofile.client.sse.SseMessageBodyReader
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<org.reactivestreams.Publisher<?>>
@Produces("text/event-stream") public class SseMessageBodyReader extends Object implements javax.ws.rs.ext.MessageBodyReader<org.reactivestreams.Publisher<?>>
-
-
Constructor Summary
Constructors Constructor Description SseMessageBodyReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisReadable(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)
-
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isReadablein interfacejavax.ws.rs.ext.MessageBodyReader<org.reactivestreams.Publisher<?>>
-
readFrom
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
- Specified by:
readFromin interfacejavax.ws.rs.ext.MessageBodyReader<org.reactivestreams.Publisher<?>>- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-
-