Class SseMessageBodyReader
- java.lang.Object
-
- org.glassfish.jersey.microprofile.restclient.SseMessageBodyReader
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<org.reactivestreams.Publisher<InboundEvent>>
@Consumes("text/event-stream") @ConstrainedTo(CLIENT) public class SseMessageBodyReader extends Object implements jakarta.ws.rs.ext.MessageBodyReader<org.reactivestreams.Publisher<InboundEvent>>
-
-
Field Summary
Fields Modifier and Type Field Description protected jakarta.ws.rs.ext.Providersproviders
-
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, jakarta.ws.rs.core.MediaType mediaType)org.reactivestreams.Publisher<InboundEvent>readFrom(Class<org.reactivestreams.Publisher<InboundEvent>> chunkedInputClass, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> headers, InputStream inputStream)
-
-
-
Method Detail
-
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<InboundEvent>>
-
readFrom
public org.reactivestreams.Publisher<InboundEvent> readFrom(Class<org.reactivestreams.Publisher<InboundEvent>> chunkedInputClass, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> headers, InputStream inputStream) throws IOException, jakarta.ws.rs.WebApplicationException
- Specified by:
readFromin interfacejakarta.ws.rs.ext.MessageBodyReader<org.reactivestreams.Publisher<InboundEvent>>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
-