Class HpackStatefulParserImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.webpieces.data.api.DataWrapper marshal​(com.webpieces.http2.api.dto.lowlevel.lib.Http2Msg frame)  
      java.lang.String marshalSettingsPayload​(java.util.List<com.webpieces.http2.api.dto.lowlevel.lib.Http2Setting> settings)
      Base 64 of the 'payload' of the SettingsFrame only, excluding the frame piece
      UnmarshalState unmarshal​(org.webpieces.data.api.DataWrapper newData)  
      java.util.List<com.webpieces.http2.api.dto.lowlevel.lib.Http2Setting> unmarshalSettingsPayload​(java.lang.String base64SettingsPayload)
      Unfortunately, in the http1.1 request to a server, the base64 http/2 upgrade settings header ONLY contains the 'payload' of a SettingFrame, so we must have a method to just parse the payload of a settings frame so this is a one-off function that I don't like exposing but need to.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • marshal

        public org.webpieces.data.api.DataWrapper marshal​(com.webpieces.http2.api.dto.lowlevel.lib.Http2Msg frame)
        Specified by:
        marshal in interface HpackStatefulParser
      • unmarshalSettingsPayload

        public java.util.List<com.webpieces.http2.api.dto.lowlevel.lib.Http2Setting> unmarshalSettingsPayload​(java.lang.String base64SettingsPayload)
        Description copied from interface: HpackStatefulParser
        Unfortunately, in the http1.1 request to a server, the base64 http/2 upgrade settings header ONLY contains the 'payload' of a SettingFrame, so we must have a method to just parse the payload of a settings frame so this is a one-off function that I don't like exposing but need to.
        Specified by:
        unmarshalSettingsPayload in interface HpackStatefulParser
      • marshalSettingsPayload

        public java.lang.String marshalSettingsPayload​(java.util.List<com.webpieces.http2.api.dto.lowlevel.lib.Http2Setting> settings)
        Description copied from interface: HpackStatefulParser
        Base 64 of the 'payload' of the SettingsFrame only, excluding the frame piece
        Specified by:
        marshalSettingsPayload in interface HpackStatefulParser