Package org.eclipse.jetty.fcgi.parser
Class ParamsContentParser
java.lang.Object
org.eclipse.jetty.fcgi.parser.ContentParser
org.eclipse.jetty.fcgi.parser.ParamsContentParser
Parser for the PARAMS frame content.
struct small_name_small_value_params_body { ubyte nameLength; ubyte valueLength; ubyte[] nameBytes; ubyte[] valueBytes; } struct small_name_large_value_params_body { ubyte nameLength; uint valueLength; ubyte[] nameBytes; ubyte[] valueBytes; } struct large_name_small_value_params_body { uint nameLength; ubyte valueLength; ubyte[] nameBytes; ubyte[] valueBytes; } struct large_name_large_value_params_body { uint nameLength; uint valueLength; ubyte[] nameBytes; ubyte[] valueBytes; }
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.fcgi.parser.ContentParser
ContentParser.Result
-
Constructor Summary
ConstructorDescriptionParamsContentParser
(HeaderParser headerParser, ServerParser.Listener listener) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Invoked by theParser
when the frame content length is zero.protected void
protected boolean
onParams()
parse
(ByteBuffer buffer) Parses the bytes in the givenbuffer
as FastCGI frame content bytes.Methods inherited from class org.eclipse.jetty.fcgi.parser.ContentParser
getContentLength, getRequest
-
Constructor Details
-
ParamsContentParser
-
-
Method Details
-
parse
Description copied from class:ContentParser
Parses the bytes in the given
buffer
as FastCGI frame content bytes.- Specified by:
parse
in classContentParser
- Parameters:
buffer
- the bytes to parse- Returns:
- the result of the parsing
-
noContent
public boolean noContent()Description copied from class:ContentParser
Invoked by the
Parser
when the frame content length is zero.- Overrides:
noContent
in classContentParser
- Returns:
- whether the parsing should stop
-
onParam
-
onParams
protected boolean onParams()
-