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
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classStreamContentParser.State-
Nested classes/interfaces inherited from class org.eclipse.jetty.fcgi.parser.ContentParser
ContentParser.Result
-
-
Field Summary
Fields Modifier and Type Field Description private intcontentLengthprivate Parser.Listenerlistenerprivate static LoggerLOGprivate StreamContentParser.Statestateprivate FCGI.StreamTypestreamType
-
Constructor Summary
Constructors Constructor Description StreamContentParser(HeaderParser headerParser, FCGI.StreamType streamType, Parser.Listener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidend(int request)voidnoContent()protected booleanonContent(java.nio.ByteBuffer buffer)ContentParser.Resultparse(java.nio.ByteBuffer buffer)-
Methods inherited from class org.eclipse.jetty.fcgi.parser.ContentParser
getContentLength, getRequest
-
-
-
-
Field Detail
-
LOG
private static final Logger LOG
-
streamType
private final FCGI.StreamType streamType
-
listener
private final Parser.Listener listener
-
state
private StreamContentParser.State state
-
contentLength
private int contentLength
-
-
Constructor Detail
-
StreamContentParser
public StreamContentParser(HeaderParser headerParser, FCGI.StreamType streamType, Parser.Listener listener)
-
-
Method Detail
-
parse
public ContentParser.Result parse(java.nio.ByteBuffer buffer)
- Specified by:
parsein classContentParser
-
noContent
public void noContent()
- Overrides:
noContentin classContentParser
-
onContent
protected boolean onContent(java.nio.ByteBuffer buffer)
-
end
protected void end(int request)
-
-