Package org.glassfish.jersey.media.sse
Class EventInput
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
SseEventPublisher
Inbound Server-Sent Events channel.
The input channel lets you serially read & consume SSE events as they arrive.
- Author:
- Marek Potociar
-
Constructor Summary
ModifierConstructorDescriptionprotected
EventInput
(InputStream inputStream, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> headers, MessageBodyWorkers messageBodyWorkers, PropertiesDelegate propertiesDelegate) Package-private constructor used by theChunkedInputReader
. -
Method Summary
Methods inherited from class org.glassfish.jersey.client.ChunkedInput
close, createMultiParser, createParser, createParser, getChunkType, getParser, isClosed, read, setChunkType, setChunkType, setParser
Methods inherited from class jakarta.ws.rs.core.GenericType
equals, forInstance, getRawType, getType, hashCode, toString
-
Constructor Details
-
EventInput
protected EventInput(InputStream inputStream, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> headers, MessageBodyWorkers messageBodyWorkers, PropertiesDelegate propertiesDelegate) Package-private constructor used by theChunkedInputReader
.- Parameters:
inputStream
- response input stream.annotations
- annotations associated with response entity.mediaType
- response entity media type.headers
- response headers.messageBodyWorkers
- message body workers.propertiesDelegate
- properties delegate for this request/response.
-