public class PrefaceParser extends Object
Constructor and Description |
---|
PrefaceParser(Parser.Listener listener) |
Modifier and Type | Method and Description |
---|---|
protected void |
directUpgrade()
Advances this parser after the
PrefaceFrame.PREFACE_PREAMBLE_BYTES . |
protected void |
notifyConnectionFailure(int error,
String reason) |
boolean |
parse(ByteBuffer buffer) |
public PrefaceParser(Parser.Listener listener)
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 a HTTP/1.1 parser.
public boolean parse(ByteBuffer buffer)
protected void notifyConnectionFailure(int error, String reason)
Copyright © 1995-2015 Webtide. All Rights Reserved.