Top Description Fields Constructors Methods
io.undertow.protocols.http2

pack-priv abstract Class Http2HeaderBlockParser

extends Http2PushBackParser
implements HeaderEmitter
Class Inheritance
All Implemented Interfaces
io.undertow.protocols.http2.HpackDecoder.HeaderEmitter
Known Direct Subclasses
io.undertow.protocols.http2.Http2HeadersParser, io.undertow.protocols.http2.Http2PushPromiseParser
Imports
java.io.IOException, java.nio.ByteBuffer, java.util.Collections, .HashSet, .Set, io.undertow.server.protocol.http.HttpContinue, org.xnio.Bits, io.undertow.UndertowLogger, .UndertowMessages, io.undertow.server.Connectors, io.undertow.util.HeaderMap, .Headers, .HttpString

Parser for HTTP2 headers
Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private boolean
private final boolean
private int
private final HpackDecoder
private int
private final HeaderMap
private int
private boolean
private final int
private final int
private boolean
private static final Set<HttpString>
private final int
Inherited from io.undertow.protocols.http2.Http2PushBackParser:
cnt

Constructor Summary

AccessConstructor and Description
pack-priv
Http2HeaderBlockParser(int frameLength, HpackDecoder decoder, boolean client, int maxHeaders, int streamId, int maxHeaderListSize)

Method Summary

Modifier and TypeMethod and Description
public void
pack-priv HeaderMap
protected abstract int
public int
protected abstract boolean
protected void
pack-priv boolean
public boolean
protected void
Inherited from io.undertow.protocols.http2.Http2PushBackParser:
finishgetFrameLengthisFinishedparse

Field Detail

beforeHeadersHandledback to summary
private boolean beforeHeadersHandled
clientback to summary
private final boolean client
currentPaddingback to summary
private int currentPadding
decoderback to summary
private final HpackDecoder decoder
frameRemainingback to summary
private int frameRemaining
headerMapback to summary
private final HeaderMap headerMap
headerSizeback to summary
private int headerSize
invalidback to summary
private boolean invalid
maxHeaderListSizeback to summary
private final int maxHeaderListSize
maxHeadersback to summary
private final int maxHeaders
processingPseudoHeadersback to summary
private boolean processingPseudoHeaders
SERVER_HEADERSback to summary
private static final Set<HttpString> SERVER_HEADERS
streamIdback to summary
private final int streamId

Constructor Detail

Http2HeaderBlockParserback to summary
pack-priv Http2HeaderBlockParser(int frameLength, HpackDecoder decoder, boolean client, int maxHeaders, int streamId, int maxHeaderListSize)

Method Detail

emitHeaderback to summary
public void emitHeader(HttpString name, String value, boolean neverIndex) throws HpackException

Implements io.undertow.protocols.http2.HpackDecoder.HeaderEmitter.emitHeader.

Annotations
@Override
getHeaderMapback to summary
pack-priv HeaderMap getHeaderMap()
getPaddingLengthback to summary
protected abstract int getPaddingLength()
getStreamIdback to summary
public int getStreamId()
handleBeforeHeaderback to summary
protected abstract boolean handleBeforeHeader(ByteBuffer resource, Http2FrameHeaderParser header)
handleDataback to summary
protected void handleData(ByteBuffer resource, Http2FrameHeaderParser header) throws IOException

Implements abstract io.undertow.protocols.http2.Http2PushBackParser.handleData.

Annotations
@Override
isContentExpectedback to summary
pack-priv boolean isContentExpected()
isInvalidback to summary
public boolean isInvalid()
moreDataback to summary
protected void moreData(int data)

Overrides io.undertow.protocols.http2.Http2PushBackParser.moreData.

Annotations
@Override