Package akka.http.javadsl.common
Class CsvEntityStreamingSupport
- java.lang.Object
-
- akka.http.javadsl.common.EntityStreamingSupport
-
- akka.http.scaladsl.common.EntityStreamingSupport
-
- akka.http.javadsl.common.CsvEntityStreamingSupport
-
- Direct Known Subclasses:
CsvEntityStreamingSupport
public abstract class CsvEntityStreamingSupport extends EntityStreamingSupport
-
-
Constructor Summary
Constructors Constructor Description CsvEntityStreamingSupport()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract CsvEntityStreamingSupport
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 CsvEntityStreamingSupport 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)
-
-