Package akka.http.javadsl.common
Class JsonEntityStreamingSupport
- java.lang.Object
-
- akka.http.javadsl.common.EntityStreamingSupport
-
- akka.http.scaladsl.common.EntityStreamingSupport
-
- akka.http.javadsl.common.JsonEntityStreamingSupport
-
- Direct Known Subclasses:
JsonEntityStreamingSupport
,JsonEntityStreamingSupport
public abstract class JsonEntityStreamingSupport extends EntityStreamingSupport
-
-
Constructor Summary
Constructors Constructor Description JsonEntityStreamingSupport()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract JsonEntityStreamingSupport
withFramingRendererFlow(akka.stream.javadsl.Flow<akka.util.ByteString,akka.util.ByteString,akka.NotUsed> flow)
Java API: Write-side, apply framing to outgoing entity stream.-
Methods inherited from class akka.http.scaladsl.common.EntityStreamingSupport
contentType, csv, csv, framingDecoder, framingRenderer, getFramingDecoder, getFramingRenderer, json, json, parallelism, supported, unordered, withContentType, withParallelMarshalling, withSupported
-
-
-
-
Method Detail
-
withFramingRendererFlow
public abstract JsonEntityStreamingSupport withFramingRendererFlow(akka.stream.javadsl.Flow<akka.util.ByteString,akka.util.ByteString,akka.NotUsed> flow)
Java API: Write-side, apply framing to outgoing entity stream.Most typical usage will be a variant of
Flow[ByteString].intersperse
.For example for rendering a JSON array one would return
Flow[ByteString].intersperse(ByteString("["), ByteString(","), ByteString("]"))
and for rendering a new-line separated CSV simplyFlow[ByteString].intersperse(ByteString("\n"))
.- Parameters:
flow
- (undocumented)- Returns:
- (undocumented)
-
-