Package org.eclipse.jetty.http2.parser
Class PrefaceParser
java.lang.Object
org.eclipse.jetty.http2.parser.PrefaceParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private final Parser.Listener
private static final org.eclipse.jetty.util.log.Logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Advances this parser after thePrefaceFrame.PREFACE_PREAMBLE_BYTES
.protected void
notifyConnectionFailure
(int error, String reason) boolean
parse
(ByteBuffer buffer)
-
Field Details
-
LOG
private static final org.eclipse.jetty.util.log.Logger LOG -
listener
-
cursor
private int cursor
-
-
Constructor Details
-
PrefaceParser
-
-
Method Details
-
directUpgrade
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.
-
parse
-
notifyConnectionFailure
-