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, wake
readLine
close, mark, markSupported, read, reset, skip
public HttpInputOverHTTP(HttpChannelState state)
protected void produceContent() throws IOException
HttpInput
HttpInput.addContent(Content)
. For protocols that are constantly
producing (eg HTTP2) this can be left as a noop;produceContent
in class HttpInput
IOException
- if unable to produce contentprotected void blockForContent() throws IOException
HttpInput
blockForContent
in class HttpInput
IOException
- if the wait is interruptedCopyright © 1995–2017 Webtide. All rights reserved.