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 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(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–2022 Webtide. All rights reserved.