Package org.eclipse.jetty.fcgi.parser
Class StreamContentParser
java.lang.Object
org.eclipse.jetty.fcgi.parser.ContentParser
org.eclipse.jetty.fcgi.parser.StreamContentParser
- Direct Known Subclasses:
ResponseContentParser
A stream content parser parses frame bodies of type STDIN, STDOUT and STDERR.
STDOUT frame bodies are handled specially by ResponseContentParser
.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.fcgi.parser.ContentParser
ContentParser.Result
-
Constructor Summary
ConstructorDescriptionStreamContentParser
(HeaderParser headerParser, FCGI.StreamType streamType, Parser.Listener listener) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
end
(int request) boolean
Invoked by theParser
when the frame content length is zero.protected boolean
onContent
(ByteBuffer buffer) 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
-
StreamContentParser
public StreamContentParser(HeaderParser headerParser, FCGI.StreamType streamType, Parser.Listener listener)
-
-
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
-
onContent
-
end
protected void end(int request)
-