Package com.webpieces.hpack.impl
Class HpackStatefulParserImpl
- java.lang.Object
-
- com.webpieces.hpack.impl.HpackStatefulParserImpl
-
- All Implemented Interfaces:
HpackStatefulParser
public class HpackStatefulParserImpl extends java.lang.Object implements HpackStatefulParser
-
-
Constructor Summary
Constructors Constructor Description HpackStatefulParserImpl(HpackParser parser, HpackConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.webpieces.data.api.DataWrappermarshal(com.webpieces.http2.api.dto.lowlevel.lib.Http2Msg frame)java.lang.StringmarshalSettingsPayload(java.util.List<com.webpieces.http2.api.dto.lowlevel.lib.Http2Setting> settings)Base 64 of the 'payload' of the SettingsFrame only, excluding the frame pieceUnmarshalStateunmarshal(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.
-
-
-
Constructor Detail
-
HpackStatefulParserImpl
public HpackStatefulParserImpl(HpackParser parser, HpackConfig config)
-
-
Method Detail
-
unmarshal
public UnmarshalState unmarshal(org.webpieces.data.api.DataWrapper newData)
- Specified by:
unmarshalin interfaceHpackStatefulParser
-
marshal
public org.webpieces.data.api.DataWrapper marshal(com.webpieces.http2.api.dto.lowlevel.lib.Http2Msg frame)
- Specified by:
marshalin interfaceHpackStatefulParser
-
unmarshalSettingsPayload
public java.util.List<com.webpieces.http2.api.dto.lowlevel.lib.Http2Setting> unmarshalSettingsPayload(java.lang.String base64SettingsPayload)
Description copied from interface:HpackStatefulParserUnfortunately, 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:
unmarshalSettingsPayloadin interfaceHpackStatefulParser
-
marshalSettingsPayload
public java.lang.String marshalSettingsPayload(java.util.List<com.webpieces.http2.api.dto.lowlevel.lib.Http2Setting> settings)
Description copied from interface:HpackStatefulParserBase 64 of the 'payload' of the SettingsFrame only, excluding the frame piece- Specified by:
marshalSettingsPayloadin interfaceHpackStatefulParser
-
-