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, wakepublic HttpInputOverHTTP(HttpChannelState state)
protected void produceContent()
throws java.io.IOException
HttpInputHttpInput.addContent(Content). For protocols that are constantly
producing (eg HTTP2) this can be left as a noop;produceContent in class HttpInputjava.io.IOException - if unable to produce contentprotected void blockForContent()
throws java.io.IOException
HttpInputblockForContent in class HttpInputjava.io.IOException - if the wait is interruptedCopyright © 1995–2017 Webtide. All rights reserved.