Class SseMessageBodyReader
java.lang.Object
org.apache.cxf.microprofile.client.sse.SseMessageBodyReader
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<org.reactivestreams.Publisher<?>>
@Produces("text/event-stream")
public class SseMessageBodyReader
extends Object
implements jakarta.ws.rs.ext.MessageBodyReader<org.reactivestreams.Publisher<?>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) org.reactivestreams.Publisher<?>readFrom(Class<org.reactivestreams.Publisher<?>> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream)
-
Constructor Details
-
SseMessageBodyReader
public SseMessageBodyReader()
-
-
Method Details
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isReadablein interfacejakarta.ws.rs.ext.MessageBodyReader<org.reactivestreams.Publisher<?>>
-
readFrom
public org.reactivestreams.Publisher<?> readFrom(Class<org.reactivestreams.Publisher<?>> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
readFromin interfacejakarta.ws.rs.ext.MessageBodyReader<org.reactivestreams.Publisher<?>>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-