Class EventStreamUnmarshalling$

java.lang.Object
org.apache.pekko.http.javadsl.unmarshalling.sse.EventStreamUnmarshalling$

public class EventStreamUnmarshalling$ extends Object
Using fromEventsStream lets a HttpEntity with a text/event-stream media type be unmarshalled to a source of ServerSentEvents.
  • Field Details

    • MODULE$

      public static final EventStreamUnmarshalling$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • EventStreamUnmarshalling$

      public EventStreamUnmarshalling$()
  • Method Details

    • fromEventsStream

      public Unmarshaller<HttpEntity,org.apache.pekko.stream.javadsl.Source<ServerSentEvent,org.apache.pekko.NotUsed>> fromEventsStream(org.apache.pekko.actor.ActorSystem system)
      Lets an HttpEntity with a text/event-stream media type be unmarshalled to a source of ServerSentEvents.
      Parameters:
      system - (undocumented)
      Returns:
      (undocumented)
    • fromEventsStream

      public Unmarshaller<HttpEntity,org.apache.pekko.stream.javadsl.Source<ServerSentEvent,org.apache.pekko.NotUsed>> fromEventsStream(ServerSentEventSettings settings)
      Lets an HttpEntity with a text/event-stream media type be unmarshalled to a source of ServerSentEvents.
      Parameters:
      settings - overrides the default unmarshalling behavior.
      Returns:
      (undocumented)