public class StreamContentParser extends ContentParser
A stream content parser parses frame bodies of type STDIN, STDOUT and STDERR.
STDOUT frame bodies are handled specially by ResponseContentParser
.
Modifier and Type | Class and Description |
---|---|
private static class |
StreamContentParser.State |
ContentParser.Result
Modifier and Type | Field and Description |
---|---|
private int |
contentLength |
private Parser.Listener |
listener |
private static Logger |
LOG |
private StreamContentParser.State |
state |
private FCGI.StreamType |
streamType |
Constructor and Description |
---|
StreamContentParser(HeaderParser headerParser,
FCGI.StreamType streamType,
Parser.Listener listener) |
Modifier and Type | Method and Description |
---|---|
protected void |
end(int request) |
void |
noContent() |
protected boolean |
onContent(java.nio.ByteBuffer buffer) |
ContentParser.Result |
parse(java.nio.ByteBuffer buffer) |
getContentLength, getRequest
private static final Logger LOG
private final FCGI.StreamType streamType
private final Parser.Listener listener
private StreamContentParser.State state
private int contentLength
public StreamContentParser(HeaderParser headerParser, FCGI.StreamType streamType, Parser.Listener listener)
public ContentParser.Result parse(java.nio.ByteBuffer buffer)
parse
in class ContentParser
public void noContent()
noContent
in class ContentParser
protected boolean onContent(java.nio.ByteBuffer buffer)
protected void end(int request)