| 限定符和类型 | 字段和说明 |
|---|---|
protected HttpControl |
control |
protected String |
path |
private HttpRequest |
request |
protected HttpResponse |
response |
| 限定符 | 构造器和说明 |
|---|---|
protected |
AbstractResourceHandler.IOWorker(String path,
HttpRequest request,
HttpResponse response,
HttpControl control) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract byte[] |
directoryListingBytes() |
protected void |
error(IOException exception) |
protected abstract boolean |
exists() |
protected String |
extractQuery(String path) |
protected abstract byte[] |
fileBytes() |
private String |
guessMimeType(String path) |
protected abstract boolean |
isDirectory() |
protected void |
notFound() |
protected byte[] |
read(int length,
InputStream in) |
void |
run() |
protected abstract byte[] |
welcomeBytes() |
protected String |
withoutQuery(String path) |
protected String path
private final HttpRequest request
protected final HttpResponse response
protected final HttpControl control
protected AbstractResourceHandler.IOWorker(String path, HttpRequest request, HttpResponse response, HttpControl control)
protected void notFound()
protected void error(IOException exception)
protected abstract boolean exists()
throws IOException
IOExceptionprotected abstract boolean isDirectory()
throws IOException
IOExceptionprotected abstract byte[] fileBytes()
throws IOException
IOExceptionprotected abstract byte[] welcomeBytes()
throws IOException
IOExceptionprotected abstract byte[] directoryListingBytes()
throws IOException
IOExceptionprotected byte[] read(int length,
InputStream in)
throws IOException
IOExceptionCopyright © 2014. All rights reserved.