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/interfaces inherited from class org.eclipse.jetty.fcgi.parser.ContentParser
ContentParser.Result
-
-
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 void
end(int request)
void
noContent()
protected boolean
onContent(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
-
-
-
-
Constructor Detail
-
ResponseContentParser
public ResponseContentParser(HeaderParser headerParser, ClientParser.Listener listener)
-
-
Method Detail
-
noContent
public void noContent()
- Overrides:
noContent
in classStreamContentParser
-
onContent
protected boolean onContent(java.nio.ByteBuffer buffer)
- Overrides:
onContent
in classStreamContentParser
-
end
protected void end(int request)
- Overrides:
end
in classStreamContentParser
-
-