Class EventStreamUnmarshalling$
java.lang.Object
akka.http.javadsl.unmarshalling.sse.EventStreamUnmarshalling$
Using
fromEventsStream
lets a HttpEntity
with a text/event-stream
media type be unmarshalled to a source of
ServerSentEvent
s.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EventStreamUnmarshalling$
Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionUnmarshaller<HttpEntity,
akka.stream.javadsl.Source<ServerSentEvent, akka.NotUsed>> fromEventsStream
(akka.actor.ActorSystem system) Lets anHttpEntity
with atext/event-stream
media type be unmarshalled to a source ofServerSentEvent
s.Unmarshaller<HttpEntity,
akka.stream.javadsl.Source<ServerSentEvent, akka.NotUsed>> fromEventsStream
(ServerSentEventSettings settings) Lets anHttpEntity
with atext/event-stream
media type be unmarshalled to a source ofServerSentEvent
s.Unmarshaller<HttpEntity,
akka.stream.javadsl.Source<ServerSentEvent, akka.NotUsed>> Deprecated.Binary compatibility method.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
EventStreamUnmarshalling$
public EventStreamUnmarshalling$()
-
-
Method Details
-
fromEventsStream
public Unmarshaller<HttpEntity,akka.stream.javadsl.Source<ServerSentEvent, fromEventsStreamakka.NotUsed>> (akka.actor.ActorSystem system) Lets anHttpEntity
with atext/event-stream
media type be unmarshalled to a source ofServerSentEvent
s.- Parameters:
system
- (undocumented)- Returns:
- (undocumented)
-
fromEventsStream
public Unmarshaller<HttpEntity,akka.stream.javadsl.Source<ServerSentEvent, fromEventsStreamakka.NotUsed>> (ServerSentEventSettings settings) Lets anHttpEntity
with atext/event-stream
media type be unmarshalled to a source ofServerSentEvent
s.- Parameters:
settings
- overrides the default unmarshalling behavior.- Returns:
- (undocumented)
-
fromEventStream
public Unmarshaller<HttpEntity,akka.stream.javadsl.Source<ServerSentEvent, fromEventStream()akka.NotUsed>> Deprecated.Binary compatibility method. Invocations should have an implicit ActorSystem in scope to provide access to configuration. Since 10.1.8.
-