Class Http2FrameParsing

java.lang.Object
org.apache.pekko.stream.stage.GraphStageWithMaterializedValue<S,org.apache.pekko.NotUsed>
org.apache.pekko.stream.stage.GraphStage<org.apache.pekko.stream.FlowShape<org.apache.pekko.util.ByteString,T>>
org.apache.pekko.stream.impl.io.ByteStringParser<FrameEvent>
org.apache.pekko.http.impl.engine.http2.framing.Http2FrameParsing
All Implemented Interfaces:
org.apache.pekko.stream.Graph<org.apache.pekko.stream.FlowShape<org.apache.pekko.util.ByteString,FrameEvent>,org.apache.pekko.NotUsed>

public class Http2FrameParsing extends org.apache.pekko.stream.impl.io.ByteStringParser<FrameEvent>
INTERNAL API
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
     

    Nested classes/interfaces inherited from class org.apache.pekko.stream.impl.io.ByteStringParser

    org.apache.pekko.stream.impl.io.ByteStringParser.ByteReader, org.apache.pekko.stream.impl.io.ByteStringParser.FinishedParser$, org.apache.pekko.stream.impl.io.ByteStringParser.ParseResult<T extends Object>, org.apache.pekko.stream.impl.io.ByteStringParser.ParseResult$, org.apache.pekko.stream.impl.io.ByteStringParser.ParseStep<T extends Object>, org.apache.pekko.stream.impl.io.ByteStringParser.ParsingException, org.apache.pekko.stream.impl.io.ByteStringParser.ParsingLogic

    Nested classes/interfaces inherited from interface org.apache.pekko.stream.Graph

    org.apache.pekko.stream.Graph.GraphMapMatVal<S extends org.apache.pekko.stream.Shape,M extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
    Http2FrameParsing(boolean shouldReadPreface, org.apache.pekko.event.LoggingAdapter log)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.pekko.stream.stage.GraphStageLogic
    createLogic(org.apache.pekko.stream.Attributes inheritedAttributes)
     
    static FrameEvent
    parseFrame(Http2Protocol.FrameType tpe, ByteFlag flags, int streamId, org.apache.pekko.stream.impl.io.ByteStringParser.ByteReader payload, org.apache.pekko.event.LoggingAdapter log)
     
    static scala.collection.immutable.Seq<FrameEvent.Setting>
    readSettings(org.apache.pekko.stream.impl.io.ByteStringParser.ByteReader payload, org.apache.pekko.event.LoggingAdapter log)
     

    Methods inherited from class org.apache.pekko.stream.impl.io.ByteStringParser

    CompactionThreshold, initialAttributes, NeedMoreData, org$apache$pekko$stream$impl$io$ByteStringParser$$bytesIn, org$apache$pekko$stream$impl$io$ByteStringParser$$objOut, shape

    Methods inherited from class org.apache.pekko.stream.stage.GraphStage

    createLogicAndMaterializedValue

    Methods inherited from class org.apache.pekko.stream.stage.GraphStageWithMaterializedValue

    addAttributes, async, async, async, createLogicAndMaterializedValue, getAttributes, named, traversalBuilder, withAttributes

    Methods inherited from class java.lang.Object

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

    • Http2FrameParsing

      public Http2FrameParsing(boolean shouldReadPreface, org.apache.pekko.event.LoggingAdapter log)
  • Method Details

    • readSettings

      public static scala.collection.immutable.Seq<FrameEvent.Setting> readSettings(org.apache.pekko.stream.impl.io.ByteStringParser.ByteReader payload, org.apache.pekko.event.LoggingAdapter log)
    • parseFrame

      public static FrameEvent parseFrame(Http2Protocol.FrameType tpe, ByteFlag flags, int streamId, org.apache.pekko.stream.impl.io.ByteStringParser.ByteReader payload, org.apache.pekko.event.LoggingAdapter log)
    • createLogic

      public org.apache.pekko.stream.stage.GraphStageLogic createLogic(org.apache.pekko.stream.Attributes inheritedAttributes)
      Specified by:
      createLogic in class org.apache.pekko.stream.stage.GraphStage<org.apache.pekko.stream.FlowShape<org.apache.pekko.util.ByteString,FrameEvent>>