Package org.eclipse.jetty.http2.parser
Class PrefaceParser
- java.lang.Object
-
- org.eclipse.jetty.http2.parser.PrefaceParser
-
public class PrefaceParser extends java.lang.Object
-
-
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)
-
-
-
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)
-
-