Package org.glassfish.jersey.media.sse
Class EventInput
- java.lang.Object
-
- jakarta.ws.rs.core.GenericType<T>
-
- org.glassfish.jersey.client.ChunkedInput<InboundEvent>
-
- org.glassfish.jersey.media.sse.EventInput
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class EventInput extends ChunkedInput<InboundEvent>
Inbound Server-Sent Events channel. The input channel lets you serially read & consume SSE events as they arrive.- Author:
- Marek Potociar
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEventInput(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 Detail
-
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.
-
-