Top Inners Fields Constructors Methods
org.eclipse.jetty.http2.parser

public Class ContinuationBodyParser

extends BodyParser
Class Inheritance
Imports
java.nio.ByteBuffer, org.eclipse.jetty.http.MetaData, org.eclipse.jetty.http2.ErrorCode, .Flags, org.eclipse.jetty.http2.frames.ContinuationFrame, .HeadersFrame, org.eclipse.jetty.io.RetainableByteBuffer

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum

Field Summary

Modifier and TypeField and Description
private final HeaderBlockFragments
private final HeaderBlockParser
private int
private ContinuationBodyParser.State

Constructor Summary

AccessConstructor and Description
public
ContinuationBodyParser(HeaderParser headerParser, Parser.Listener listener, HeaderBlockParser headerBlockParser, HeaderBlockFragments headerBlockFragments)

Method Summary

Modifier and TypeMethod and Description
protected void
private boolean
public boolean
parse(ByteBuffer
the buffer to parse
buffer
)

Implements abstract org.eclipse.jetty.http2.parser.BodyParser.parse.

Parses the body bytes in the given buffer; only the body bytes are consumed, therefore when this method returns, the buffer may contain unconsumed bytes.

private void
Inherited from org.eclipse.jetty.http2.parser.BodyParser:
connectionFailuregetBodyLengthgetFrameTypegetStreamIdhasFlagisEndStreamisPaddingnotifyDatanotifyGoAwaynotifyHeadersnotifyPingnotifyPrioritynotifyPushPromisenotifyResetnotifySettingsnotifyWindowUpdaterateControlOnEventstreamFailure

Field Detail

headerBlockFragmentsback to summary
private final HeaderBlockFragments headerBlockFragments
headerBlockParserback to summary
private final HeaderBlockParser headerBlockParser
lengthback to summary
private int length
stateback to summary
private ContinuationBodyParser.State state

Constructor Detail

ContinuationBodyParserback to summary
public ContinuationBodyParser(HeaderParser headerParser, Parser.Listener listener, HeaderBlockParser headerBlockParser, HeaderBlockFragments headerBlockFragments)

Method Detail

emptyBodyback to summary
protected void emptyBody(ByteBuffer buffer)

Overrides org.eclipse.jetty.http2.parser.BodyParser.emptyBody.

Annotations
@Override
onHeadersback to summary
private boolean onHeaders(ByteBuffer buffer)
parseback to summary
public boolean parse(ByteBuffer buffer)

Implements abstract org.eclipse.jetty.http2.parser.BodyParser.parse.

Doc from org.eclipse.jetty.http2.parser.BodyParser.parse.

Parses the body bytes in the given buffer; only the body bytes are consumed, therefore when this method returns, the buffer may contain unconsumed bytes.

Parameters
buffer:ByteBuffer

the buffer to parse

Returns:boolean

true if the whole body bytes were parsed, false if not enough body bytes were present in the buffer

Annotations
@Override
resetback to summary
private void reset()
org.eclipse.jetty.http2.parser back to summary

private final Enum ContinuationBodyParser.State

extends Enum<ContinuationBodyParser.State>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final ContinuationBodyParser.State
public static final ContinuationBodyParser.State

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ContinuationBodyParser.State
public static ContinuationBodyParser.State[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

FRAGMENTback to summary
public static final ContinuationBodyParser.State FRAGMENT
PREPAREback to summary
public static final ContinuationBodyParser.State PREPARE

Constructor Detail

Stateback to summary
private State()

Method Detail

valueOfback to summary
public static ContinuationBodyParser.State valueOf(String name)
valuesback to summary
public static ContinuationBodyParser.State[] values()