Package org.eclipse.jetty.fcgi.parser
Class Parser
java.lang.Object
org.eclipse.jetty.fcgi.parser.Parser
- Direct Known Subclasses:
ClientParser
,ServerParser
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.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
private static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final HeaderParser
private static final Logger
private int
private Parser.State
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ContentParser
findContentParser
(FCGI.FrameType frameType) boolean
parse
(ByteBuffer buffer) private void
reset()
-
Field Details
-
LOG
-
headerParser
-
state
-
padding
private int padding
-
-
Constructor Details
-
Parser
public Parser()
-
-
Method Details
-
parse
- Parameters:
buffer
- the bytes to parse- Returns:
- true if the caller should stop parsing, false if the caller should continue parsing
-
findContentParser
-
reset
private void reset()
-