Supports a single byte range requested via Range HTTP header. This
feature supports a dumb client to resume download of a larger object file.
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private final long | |
| private final Instant | |
| private final File | |
| private long | |
| private final RandomAccessFile |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv Instant | |
| private static Enumeration | |
| pack-priv String | |
| private boolean | |
| pack-priv void |
| end | back to summary |
|---|---|
| private long end | |
| fileLen | back to summary |
|---|---|
| private final long fileLen | |
| lastModified | back to summary |
|---|---|
| private final Instant lastModified | |
| path | back to summary |
|---|---|
| private final File path | |
| pos | back to summary |
|---|---|
| private long pos | |
| source | back to summary |
|---|---|
| private final RandomAccessFile source | |
| FileSender | back to summary |
|---|---|
| pack-priv FileSender(File path) throws FileNotFoundException | |
| close | back to summary |
|---|---|
| pack-priv void close() | |
| getLastModified | back to summary |
|---|---|
| pack-priv Instant getLastModified() | |
| getRange | back to summary |
|---|---|
| private static Enumeration | |
| getTailChecksum | back to summary |
|---|---|
| pack-priv String getTailChecksum() throws IOException | |
| initRangeRequest | back to summary |
|---|---|
| private boolean initRangeRequest(final HttpServletRequest req, final HttpServletResponse rsp) throws IOException | |
| serve | back to summary |
|---|---|
| pack-priv void serve(final HttpServletRequest req, final HttpServletResponse rsp, final boolean sendBody) throws IOException | |