Package com.webpieces.hpack.impl
Class UnmarshalStateImpl
- java.lang.Object
-
- com.webpieces.hpack.impl.UnmarshalStateImpl
-
- All Implemented Interfaces:
UnmarshalState
public class UnmarshalStateImpl extends java.lang.Object implements UnmarshalState
-
-
Constructor Summary
Constructors Constructor Description UnmarshalStateImpl(java.lang.String logId, com.webpieces.http2parser.api.Http2Memento lowLevelState, HeaderDecoding decoding, com.twitter.hpack.Decoder decoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHalfParsedSize(int numBytesJustParsed2)voidaddParsedMessage(com.webpieces.http2.api.dto.lowlevel.lib.Http2Msg frame)voidaddToDataToParseSize(int readableSize)voidclearParsedFrames()intgetDataToParseSize()com.twitter.hpack.DecodergetDecoder()java.util.List<com.webpieces.http2.api.dto.lowlevel.lib.HasHeaderFragment>getHeadersToCombine()intgetLeftOverDataSize()java.lang.StringgetLogId()com.webpieces.http2parser.api.Http2MementogetLowLevelState()intgetNumBytesJustParsed()java.util.List<com.webpieces.http2.api.dto.lowlevel.lib.Http2Msg>getParsedFrames()In the case where you pass in bytes of 2 or more messages, we give you back all the parsed messages so farjava.util.concurrent.CompletableFuture<java.lang.Void>getProcessFuture()voidresetNumBytesJustParsed()voidsetDecoderMaxTableSize(int newSize)voidsetIncomingMaxFrameSize(long maxFrameSize)voidsetProcessFuturee(java.util.concurrent.CompletableFuture<java.lang.Void> future)
-
-
-
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:UnmarshalStateIn the case where you pass in bytes of 2 or more messages, we give you back all the parsed messages so far- Specified by:
getParsedFramesin interfaceUnmarshalState- 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()
-
setDecoderMaxTableSize
public void setDecoderMaxTableSize(int newSize)
- Specified by:
setDecoderMaxTableSizein interfaceUnmarshalState
-
setIncomingMaxFrameSize
public void setIncomingMaxFrameSize(long maxFrameSize)
- Specified by:
setIncomingMaxFrameSizein interfaceUnmarshalState
-
clearParsedFrames
public void clearParsedFrames()
-
getLogId
public java.lang.String getLogId()
-
getLeftOverDataSize
public int getLeftOverDataSize()
- Specified by:
getLeftOverDataSizein interfaceUnmarshalState
-
getNumBytesJustParsed
public int getNumBytesJustParsed()
- Specified by:
getNumBytesJustParsedin interfaceUnmarshalState
-
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:
getProcessFuturein interfaceUnmarshalState
-
setProcessFuturee
public void setProcessFuturee(java.util.concurrent.CompletableFuture<java.lang.Void> future)
- Specified by:
setProcessFutureein interfaceUnmarshalState
-
-