public class HttpInputOverHTTP extends HttpInput<ByteBuffer> implements Callback
HttpInput.StateCallback.Adapter| Constructor and Description |
|---|
HttpInputOverHTTP(HttpConnection httpConnection) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
blockForContent() |
protected void |
consume(ByteBuffer item,
int length) |
void |
content(ByteBuffer item)
Add some content to the input stream
|
void |
failed(Throwable x) |
protected int |
get(ByteBuffer item,
byte[] buffer,
int offset,
int length) |
protected ByteBuffer |
nextContent()
Access the next content to be consumed from.
|
void |
recycle() |
protected int |
remaining(ByteBuffer item) |
void |
succeeded() |
String |
toString() |
protected void |
unready() |
available, consumeAll, earlyEOF, getContentRead, getNextContent, init, isFinished, isReady, lock, messageComplete, onAsyncRead, read, read, run, setReadListenerreadLineclose, mark, markSupported, read, reset, skippublic HttpInputOverHTTP(HttpConnection httpConnection)
httpConnection - public void recycle()
recycle in class HttpInput<ByteBuffer>protected void blockForContent()
throws IOException
blockForContent in class HttpInput<ByteBuffer>IOExceptionprotected ByteBuffer nextContent() throws IOException
HttpInputHttpInput.get(Object, byte[], int, int)
or HttpInput.consume(Object, int) are required to consume data from the content.nextContent in class HttpInput<ByteBuffer>IOExceptionprotected int remaining(ByteBuffer item)
remaining in class HttpInput<ByteBuffer>protected int get(ByteBuffer item, byte[] buffer, int offset, int length)
get in class HttpInput<ByteBuffer>protected void consume(ByteBuffer item, int length)
consume in class HttpInput<ByteBuffer>public void content(ByteBuffer item)
HttpInputcontent in class HttpInput<ByteBuffer>protected void unready()
unready in class HttpInput<ByteBuffer>Copyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.