public class EventStreamUnmarshalling
extends java.lang.Object
fromEventsStream
lets a HttpEntity
with a text/event-stream
media type be unmarshalled to a source of
ServerSentEvent
s.Constructor and Description |
---|
EventStreamUnmarshalling() |
Modifier and Type | Method and Description |
---|---|
static 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 ServerSentEvent s. |
static 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 ServerSentEvent s. |
static Unmarshaller<HttpEntity,org.apache.pekko.stream.javadsl.Source<ServerSentEvent,org.apache.pekko.NotUsed>> |
fromEventStream()
Deprecated.
Binary compatibility method. Invocations should have an implicit ActorSystem in scope to provide access to configuration. Since Akka HTTP 10.1.8.
|
public static Unmarshaller<HttpEntity,org.apache.pekko.stream.javadsl.Source<ServerSentEvent,org.apache.pekko.NotUsed>> fromEventsStream(org.apache.pekko.actor.ActorSystem system)
HttpEntity
with a text/event-stream
media type be unmarshalled to a source of ServerSentEvent
s.system
- (undocumented)public static Unmarshaller<HttpEntity,org.apache.pekko.stream.javadsl.Source<ServerSentEvent,org.apache.pekko.NotUsed>> fromEventsStream(ServerSentEventSettings settings)
HttpEntity
with a text/event-stream
media type be unmarshalled to a source of ServerSentEvent
s.settings
- overrides the default unmarshalling behavior.public static Unmarshaller<HttpEntity,org.apache.pekko.stream.javadsl.Source<ServerSentEvent,org.apache.pekko.NotUsed>> fromEventStream()