Class SseMessageBodyReader
- java.lang.Object
-
- org.glassfish.jersey.microprofile.restclient.SseMessageBodyReader
-
- All Implemented Interfaces:
MessageBodyReader<org.reactivestreams.Publisher<InboundEvent>>
@Consumes("text/event-stream") @ConstrainedTo(CLIENT) public class SseMessageBodyReader extends Object implements MessageBodyReader<org.reactivestreams.Publisher<InboundEvent>>
-
-
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, MediaType mediaType)org.reactivestreams.Publisher<InboundEvent>readFrom(Class<org.reactivestreams.Publisher<InboundEvent>> chunkedInputClass, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> headers, InputStream inputStream)
-
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
- Specified by:
isReadablein interfaceMessageBodyReader<org.reactivestreams.Publisher<InboundEvent>>
-
readFrom
public org.reactivestreams.Publisher<InboundEvent> readFrom(Class<org.reactivestreams.Publisher<InboundEvent>> chunkedInputClass, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> headers, InputStream inputStream) throws IOException, WebApplicationException
- Specified by:
readFromin interfaceMessageBodyReader<org.reactivestreams.Publisher<InboundEvent>>- Throws:
IOExceptionWebApplicationException
-
-