public abstract class HTTPContext
extends java.lang.Object
| Constructor and Description |
|---|
HTTPContext() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPath() |
abstract long |
getSize() |
abstract long |
read(java.nio.channels.SocketChannel channel,
long contextPosition)
read as much bytes as possible, from the resource to the given channel.
|
public abstract long getSize()
public abstract long read(java.nio.channels.SocketChannel channel,
long contextPosition)
throws java.io.IOException
channel - the channel to write tocontextPosition - the beginning position to read, inclusive.java.io.IOExceptionpublic java.lang.String getPath()