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.
ContentParser.Result
Constructor and Description |
---|
ResponseContentParser(HeaderParser headerParser,
ClientParser.Listener listener) |
Modifier and Type | Method and Description |
---|---|
protected void |
end(int request) |
void |
noContent() |
protected boolean |
onContent(ByteBuffer buffer) |
parse
getContentLength, getRequest
public ResponseContentParser(HeaderParser headerParser, ClientParser.Listener listener)
public void noContent()
noContent
in class StreamContentParser
protected boolean onContent(ByteBuffer buffer)
onContent
in class StreamContentParser
protected void end(int request)
end
in class StreamContentParser
Copyright © 1995-2016 Webtide. All Rights Reserved.