Class UnmarshalStateImpl

    • Constructor Detail

      • UnmarshalStateImpl

        public UnmarshalStateImpl​(java.lang.String logId,
                                  com.webpieces.http2parser.api.Http2Memento lowLevelState,
                                  HeaderDecoding decoding,
                                  com.twitter.hpack.Decoder decoder)
    • Method Detail

      • getParsedFrames

        public java.util.List<com.webpieces.http2.api.dto.lowlevel.lib.Http2Msg> getParsedFrames()
        Description copied from interface: UnmarshalState
        In the case where you pass in bytes of 2 or more messages, we give you back all the parsed messages so far
        Specified by:
        getParsedFrames in interface UnmarshalState
        Returns:
      • getLowLevelState

        public com.webpieces.http2parser.api.Http2Memento getLowLevelState()
      • getHeadersToCombine

        public java.util.List<com.webpieces.http2.api.dto.lowlevel.lib.HasHeaderFragment> getHeadersToCombine()
      • getDecoder

        public com.twitter.hpack.Decoder getDecoder()
      • clearParsedFrames

        public void clearParsedFrames()
      • getLogId

        public java.lang.String getLogId()
      • getDataToParseSize

        public int getDataToParseSize()
      • addToDataToParseSize

        public void addToDataToParseSize​(int readableSize)
      • addHalfParsedSize

        public void addHalfParsedSize​(int numBytesJustParsed2)
      • addParsedMessage

        public void addParsedMessage​(com.webpieces.http2.api.dto.lowlevel.lib.Http2Msg frame)
      • resetNumBytesJustParsed

        public void resetNumBytesJustParsed()
      • getProcessFuture

        public java.util.concurrent.CompletableFuture<java.lang.Void> getProcessFuture()
        Specified by:
        getProcessFuture in interface UnmarshalState
      • setProcessFuturee

        public void setProcessFuturee​(java.util.concurrent.CompletableFuture<java.lang.Void> future)
        Specified by:
        setProcessFuturee in interface UnmarshalState