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, unblock
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-2016 Webtide. All Rights Reserved.