Package org.eclipse.jetty.fcgi.parser
Class ResponseContentParser
- java.lang.Object
-
- org.eclipse.jetty.fcgi.parser.ContentParser
-
- org.eclipse.jetty.fcgi.parser.StreamContentParser
-
- org.eclipse.jetty.fcgi.parser.ResponseContentParser
-
public class ResponseContentParser extends StreamContentParser
The parser for STDOUT type frame bodies.
STDOUT frame bodies contain both the HTTP headers (but not the response line) and the HTTP content (either Content-Length delimited or chunked).
For this reason, a special HTTP parser is used to parse the frames body. This special HTTP parser is configured to skip the response line, and to parse HTTP headers and HTTP content.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classResponseContentParser.FCGIHttpParserprivate static classResponseContentParser.ResponseParserprivate static classResponseContentParser.State-
Nested classes/interfaces inherited from class org.eclipse.jetty.fcgi.parser.ContentParser
ContentParser.Result
-
-
Field Summary
Fields Modifier and Type Field Description private ClientParser.Listenerlistenerprivate static LoggerLOGprivate java.util.Map<java.lang.Integer,ResponseContentParser.ResponseParser>parsers
-
Constructor Summary
Constructors Constructor Description ResponseContentParser(HeaderParser headerParser, ClientParser.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)-
Methods inherited from class org.eclipse.jetty.fcgi.parser.StreamContentParser
parse
-
Methods inherited from class org.eclipse.jetty.fcgi.parser.ContentParser
getContentLength, getRequest
-
-
-
-
Field Detail
-
LOG
private static final Logger LOG
-
parsers
private final java.util.Map<java.lang.Integer,ResponseContentParser.ResponseParser> parsers
-
listener
private final ClientParser.Listener listener
-
-
Constructor Detail
-
ResponseContentParser
public ResponseContentParser(HeaderParser headerParser, ClientParser.Listener listener)
-
-
Method Detail
-
noContent
public void noContent()
- Overrides:
noContentin classStreamContentParser
-
onContent
protected boolean onContent(java.nio.ByteBuffer buffer)
- Overrides:
onContentin classStreamContentParser
-
end
protected void end(int request)
- Overrides:
endin classStreamContentParser
-
-