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 | Description |
|---|---|
ResponseContentParser(HeaderParser headerParser,
ClientParser.Listener listener) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
end(int request) |
|
void |
noContent() |
|
protected boolean |
onContent(java.nio.ByteBuffer buffer) |
getContentLength, getRequestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparsepublic ResponseContentParser(HeaderParser headerParser, ClientParser.Listener listener)
public void noContent()
noContent in class StreamContentParserprotected boolean onContent(java.nio.ByteBuffer buffer)
onContent in class StreamContentParserprotected void end(int request)
end in class StreamContentParserCopyright © 1995–2018 Webtide. All rights reserved.