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

public Class GoAwayBodyParser

extends BodyParser
Class Inheritance
Imports
java.nio.ByteBuffer, org.eclipse.jetty.http2.ErrorCode, org.eclipse.jetty.http2.frames.GoAwayFrame

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum

Field Summary

Modifier and TypeField and Description
private int
private int
private int
private int
private byte[]
private GoAwayBodyParser.State

Constructor Summary

AccessConstructor and Description
public
GoAwayBodyParser(HeaderParser headerParser, Parser.Listener listener)

Method Summary

Modifier and TypeMethod and Description
private boolean
onGoAway(int lastStreamId, int error, byte[] payload)

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:
connectionFailureemptyBodygetBodyLengthgetFrameTypegetStreamIdhasFlagisEndStreamisPaddingnotifyDatanotifyGoAwaynotifyHeadersnotifyPingnotifyPrioritynotifyPushPromisenotifyResetnotifySettingsnotifyWindowUpdaterateControlOnEventstreamFailure

Field Detail

cursorback to summary
private int cursor
errorback to summary
private int error
lastStreamIdback to summary
private int lastStreamId
lengthback to summary
private int length
payloadback to summary
private byte[] payload
stateback to summary
private GoAwayBodyParser.State state

Constructor Detail

GoAwayBodyParserback to summary
public GoAwayBodyParser(HeaderParser headerParser, Parser.Listener listener)

Method Detail

onGoAwayback to summary
private boolean onGoAway(int lastStreamId, int error, byte[] payload)
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 GoAwayBodyParser.State

extends Enum<GoAwayBodyParser.State>
Class Inheritance

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

ERRORback to summary
public static final GoAwayBodyParser.State ERROR
ERROR_BYTESback to summary
public static final GoAwayBodyParser.State ERROR_BYTES
LAST_STREAM_IDback to summary
public static final GoAwayBodyParser.State LAST_STREAM_ID
LAST_STREAM_ID_BYTESback to summary
public static final GoAwayBodyParser.State LAST_STREAM_ID_BYTES
PAYLOADback to summary
public static final GoAwayBodyParser.State PAYLOAD
PAYLOAD_BYTESback to summary
public static final GoAwayBodyParser.State PAYLOAD_BYTES
PREPAREback to summary
public static final GoAwayBodyParser.State PREPARE

Constructor Detail

Stateback to summary
private State()

Method Detail

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