ClientParser
, ServerParser
public abstract class Parser
extends java.lang.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 | Description |
---|---|---|
static interface |
Parser.Listener |
Modifier and Type | Field | Description |
---|---|---|
protected HeaderParser |
headerParser |
Constructor | Description |
---|---|
Parser() |
Modifier and Type | Method | Description |
---|---|---|
protected abstract ContentParser |
findContentParser(FCGI.FrameType frameType) |
|
boolean |
parse(java.nio.ByteBuffer buffer) |
protected final HeaderParser headerParser
public boolean parse(java.nio.ByteBuffer buffer)
buffer
- the bytes to parseprotected abstract ContentParser findContentParser(FCGI.FrameType frameType)
Copyright © 1995–2018 Webtide. All rights reserved.