Package org.eclipse.jetty.http2.parser
Class PrefaceParser
- java.lang.Object
-
- org.eclipse.jetty.http2.parser.PrefaceParser
-
public class PrefaceParser extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
cursor
private Parser.Listener
listener
private static org.eclipse.jetty.util.log.Logger
LOG
-
Constructor Summary
Constructors Constructor Description PrefaceParser(Parser.Listener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
directUpgrade()
Advances this parser after thePrefaceFrame.PREFACE_PREAMBLE_BYTES
.protected void
notifyConnectionFailure(int error, java.lang.String reason)
boolean
parse(java.nio.ByteBuffer buffer)
-
-
-
Field Detail
-
LOG
private static final org.eclipse.jetty.util.log.Logger LOG
-
listener
private final Parser.Listener listener
-
cursor
private int cursor
-
-
Constructor Detail
-
PrefaceParser
public PrefaceParser(Parser.Listener listener)
-
-
Method Detail
-
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
public boolean parse(java.nio.ByteBuffer buffer)
-
notifyConnectionFailure
protected void notifyConnectionFailure(int error, java.lang.String reason)
-
-