Package akka.http.impl.engine.rendering
Class BodyPartRenderer
- java.lang.Object
-
- akka.http.impl.engine.rendering.BodyPartRenderer
-
public class BodyPartRenderer extends java.lang.Object
INTERNAL API
-
-
Constructor Summary
Constructors Constructor Description BodyPartRenderer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
randomBoundary(int length, java.util.Random random)
Creates a new random number of the given length and base64 encodes it (using a custom "safe" alphabet).static java.lang.String
randomBoundaryWithDefaultRandom(int length)
Creates a new random number of the given length and base64 encodes it (using a custom "safe" alphabet).static java.lang.String
randomBoundaryWithDefaults()
Creates a new random number of default length and base64 encodes it (using a custom "safe" alphabet).static akka.stream.stage.GraphStage<akka.stream.FlowShape<Multipart.BodyPart,akka.stream.scaladsl.Source<HttpEntity.ChunkStreamPart,java.lang.Object>>>
streamed(java.lang.String boundary, int partHeadersSizeHint, akka.event.LoggingAdapter _log)
static akka.util.ByteString
strict(scala.collection.immutable.Seq<Multipart.BodyPart.Strict> parts, java.lang.String boundary, int partHeadersSizeHint, akka.event.LoggingAdapter log)
-
-
-
Method Detail
-
streamed
public static akka.stream.stage.GraphStage<akka.stream.FlowShape<Multipart.BodyPart,akka.stream.scaladsl.Source<HttpEntity.ChunkStreamPart,java.lang.Object>>> streamed(java.lang.String boundary, int partHeadersSizeHint, akka.event.LoggingAdapter _log)
-
strict
public static akka.util.ByteString strict(scala.collection.immutable.Seq<Multipart.BodyPart.Strict> parts, java.lang.String boundary, int partHeadersSizeHint, akka.event.LoggingAdapter log)
-
randomBoundary
public static java.lang.String randomBoundary(int length, java.util.Random random)
Creates a new random number of the given length and base64 encodes it (using a custom "safe" alphabet).- Parameters:
length
- (undocumented)random
- (undocumented)- Returns:
- (undocumented)
-
randomBoundaryWithDefaults
public static java.lang.String randomBoundaryWithDefaults()
Creates a new random number of default length and base64 encodes it (using a custom "safe" alphabet).- Returns:
- (undocumented)
-
randomBoundaryWithDefaultRandom
public static java.lang.String randomBoundaryWithDefaultRandom(int length)
Creates a new random number of the given length and base64 encodes it (using a custom "safe" alphabet).- Parameters:
length
- (undocumented)- Returns:
- (undocumented)
-
-