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

public Class PrefaceParser

extends Object
Class Inheritance
Imports
java.nio.ByteBuffer, org.eclipse.jetty.http2.ErrorCode, org.eclipse.jetty.http2.frames.PrefaceFrame, org.eclipse.jetty.util.BufferUtil, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private int
private final Parser.Listener
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
directUpgrade()

Advances this parser after the PrefaceFrame#PREFACE_PREAMBLE_BYTES.

protected void
notifyConnectionFailure(int error, String reason)

public boolean
parse(ByteBuffer buffer)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cursorback to summary
private int cursor
listenerback to summary
private final Parser.Listener listener
LOGback to summary
private static final Logger LOG

Constructor Detail

PrefaceParserback to summary
public PrefaceParser(Parser.Listener listener)

Method Detail

directUpgradeback to summary
protected void directUpgrade()

Advances this parser after the PrefaceFrame#PREFACE_PREAMBLE_BYTES.

This allows the HTTP/1.1 parser to parse the preamble of the preface, which is a legal HTTP/1.1 request, and this parser will parse the remaining bytes, that are not parseable by an HTTP/1.1 parser.

notifyConnectionFailureback to summary
protected void notifyConnectionFailure(int error, String reason)
parseback to summary
public boolean parse(ByteBuffer buffer)