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
The parser for STDOUT frame content.
STDOUT frame content 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
ConstructorDescriptionResponseContentParser
(HeaderParser headerParser, ClientParser.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) Methods inherited from class org.eclipse.jetty.fcgi.parser.StreamContentParser
parse
Methods inherited from class org.eclipse.jetty.fcgi.parser.ContentParser
getContentLength, getRequest
-
Constructor Details
-
ResponseContentParser
-
-
Method Details
-
noContent
public boolean noContent()Description copied from class:ContentParser
Invoked by the
Parser
when the frame content length is zero.- Overrides:
noContent
in classStreamContentParser
- Returns:
- whether the parsing should stop
-
onContent
- Overrides:
onContent
in classStreamContentParser
-
end
protected void end(int request) - Overrides:
end
in classStreamContentParser
-