| 构造器和说明 |
|---|
StaticFileHandler(StaticFileConfiguration configuration) |
StaticFileHandler(String rootPath) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
handle(RoutingContext ctx) |
protected void |
responseMultiRanges(RoutingContext ctx,
File file,
long contentLength,
String mimeType,
List<InclusiveByteRange> ranges) |
protected void |
responseNoRange(RoutingContext ctx,
File file,
long contentLength,
String mimeType) |
protected void |
responseOneRange(RoutingContext ctx,
File file,
long contentLength,
String mimeType,
List<InclusiveByteRange> ranges) |
public StaticFileHandler(StaticFileConfiguration configuration)
public StaticFileHandler(String rootPath)
public void handle(RoutingContext ctx)
protected void responseMultiRanges(RoutingContext ctx, File file, long contentLength, String mimeType, List<InclusiveByteRange> ranges)
protected void responseOneRange(RoutingContext ctx, File file, long contentLength, String mimeType, List<InclusiveByteRange> ranges)
protected void responseNoRange(RoutingContext ctx, File file, long contentLength, String mimeType)
Copyright © 2017. All rights reserved.