Class BodyPartRenderer


  • public class BodyPartRenderer
    extends java.lang.Object
    INTERNAL API
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BodyPartRenderer

        public BodyPartRenderer()
    • 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)