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

public Class UnknownBodyParser

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

Field Summary

Modifier and TypeField and Description
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private int
consume(ByteBuffer buffer, int length)

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.

Inherited from org.eclipse.jetty.http2.parser.BodyParser:
connectionFailureemptyBodygetBodyLengthgetFrameTypegetStreamIdhasFlagisEndStreamisPaddingnotifyDatanotifyGoAwaynotifyHeadersnotifyPingnotifyPrioritynotifyPushPromisenotifyResetnotifySettingsnotifyWindowUpdaterateControlOnEventstreamFailure

Field Detail

cursorback to summary
private int cursor

Constructor Detail

UnknownBodyParserback to summary
public UnknownBodyParser(HeaderParser headerParser, Parser.Listener listener)

Method Detail

consumeback to summary
private int consume(ByteBuffer buffer, int length)
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