public class ByteRangeHandler extends Object implements HttpHandler
Note that this is not necessarily the most efficient way to handle range requests, as the full content will be generated and then discarded.
At present this handler can only handle simple (i.e. single range) requests. If multiple ranges are requested the Range header will be ignored.
| Modifier and Type | Class and Description |
|---|---|
static class |
ByteRangeHandler.Builder |
static class |
ByteRangeHandler.Wrapper |
| Constructor and Description |
|---|
ByteRangeHandler(HttpHandler next,
boolean sendAcceptRanges) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleRequest(HttpServerExchange exchange)
Handle the request.
|
public ByteRangeHandler(HttpHandler next, boolean sendAcceptRanges)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangeExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.