public class HttpInputOverHTTP extends HttpInput
HttpInput.Content, HttpInput.EofContent, HttpInput.EOFState, HttpInput.ErrorState, HttpInput.PoisonPillContent, HttpInput.State| Constructor and Description |
|---|
HttpInputOverHTTP(HttpChannelState state) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
blockForContent()
Blocks until some content or some end-of-file event arrives.
|
protected void |
produceContent()
Called when derived implementations should attempt to
produce more Content and add it via
HttpInput.addContent(Content). |
addContent, available, consumeAll, consumeNonContent, earlyEOF, eof, failed, get, getContentConsumed, getHttpChannelState, hasContent, isAsync, isError, isFinished, isReady, nextContent, nextReadable, pollContent, pollReadable, prependContent, read, read, recycle, remaining, run, setReadListener, skip, toString, unblockreadLineclose, mark, markSupported, read, reset, skippublic HttpInputOverHTTP(HttpChannelState state)
protected void produceContent()
throws IOException
HttpInputHttpInput.addContent(Content).
For protocols that are constantly producing (eg HTTP2) this can
be left as a noop;produceContent in class HttpInputIOException - if unable to produce contentprotected void blockForContent()
throws IOException
HttpInputblockForContent in class HttpInputIOException - if the wait is interruptedCopyright © 1995–2017 Webtide. All rights reserved.