public abstract class Parser extends Object
The FastCGI protocol exchanges frames.
struct frame { ubyte version; ubyte type; ushort requestId; ushort contentLength; ubyte paddingLength; ubyte reserved; ubyte[] content; ubyte[] padding; }
Depending on the type
, the content may have a different format,
so there are specialized content parsers.
HeaderParser
,
ContentParser
Modifier and Type | Class and Description |
---|---|
static interface |
Parser.Listener |
Modifier and Type | Field and Description |
---|---|
protected HeaderParser |
headerParser |
Constructor and Description |
---|
Parser() |
Modifier and Type | Method and Description |
---|---|
protected abstract ContentParser |
findContentParser(FCGI.FrameType frameType) |
boolean |
parse(ByteBuffer buffer) |
protected final HeaderParser headerParser
public boolean parse(ByteBuffer buffer)
buffer
- the bytes to parseprotected abstract ContentParser findContentParser(FCGI.FrameType frameType)
Copyright © 1995-2016 Webtide. All Rights Reserved.