Class EventInput

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class EventInput
    extends org.glassfish.jersey.client.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
      protected EventInput​(InputStream inputStream, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,​String> headers, org.glassfish.jersey.message.MessageBodyWorkers messageBodyWorkers, org.glassfish.jersey.internal.PropertiesDelegate propertiesDelegate)
      Package-private constructor used by the ChunkedInputReader.
    • 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,
                             jakarta.ws.rs.core.MediaType mediaType,
                             jakarta.ws.rs.core.MultivaluedMap<String,​String> headers,
                             org.glassfish.jersey.message.MessageBodyWorkers messageBodyWorkers,
                             org.glassfish.jersey.internal.PropertiesDelegate propertiesDelegate)
        Package-private constructor used by the ChunkedInputReader.
        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.