Class EventStreamUnmarshalling
java.lang.Object
org.apache.pekko.http.javadsl.unmarshalling.sse.EventStreamUnmarshalling
Using 
fromEventsStream lets a HttpEntity with a text/event-stream media type be unmarshalled to a source of
 ServerSentEvents.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic Unmarshaller<HttpEntity,org.apache.pekko.stream.javadsl.Source<ServerSentEvent, org.apache.pekko.NotUsed>> fromEventsStream(org.apache.pekko.actor.ActorSystem system) Lets anHttpEntitywith atext/event-streammedia type be unmarshalled to a source ofServerSentEvents.static Unmarshaller<HttpEntity,org.apache.pekko.stream.javadsl.Source<ServerSentEvent, org.apache.pekko.NotUsed>> fromEventsStream(ServerSentEventSettings settings) Lets anHttpEntitywith atext/event-streammedia type be unmarshalled to a source ofServerSentEvents.
- 
Constructor Details- 
EventStreamUnmarshallingpublic EventStreamUnmarshalling()
 
- 
- 
Method Details- 
fromEventsStreampublic static Unmarshaller<HttpEntity,org.apache.pekko.stream.javadsl.Source<ServerSentEvent, fromEventsStreamorg.apache.pekko.NotUsed>> (org.apache.pekko.actor.ActorSystem system) Lets anHttpEntitywith atext/event-streammedia type be unmarshalled to a source ofServerSentEvents.- Parameters:
- system- (undocumented)
- Returns:
- (undocumented)
 
- 
fromEventsStreampublic static Unmarshaller<HttpEntity,org.apache.pekko.stream.javadsl.Source<ServerSentEvent, fromEventsStreamorg.apache.pekko.NotUsed>> (ServerSentEventSettings settings) Lets anHttpEntitywith atext/event-streammedia type be unmarshalled to a source ofServerSentEvents.- Parameters:
- settings- overrides the default unmarshalling behavior.
- Returns:
- (undocumented)
 
 
-