public class HttpInputOverHTTP extends HttpInput
HttpInput.ChainedInterceptor, HttpInput.Content, HttpInput.EofContent, HttpInput.EOFState, HttpInput.ErrorState, HttpInput.Interceptor, HttpInput.SentinelContent, 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, addInterceptor, available, consumeAll, earlyEOF, eof, failed, get, getContentConsumed, getHttpChannelState, getInterceptor, hasContent, isAsync, isAsyncEOF, isError, isFinished, isReady, nextContent, nextInterceptedContent, nextNonSentinelContent, prependContent, produceNextContext, read, read, recycle, run, setInterceptor, setReadListener, skip, toString, unblock, wakereadLineclose, 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.