protected class EmbeddedResourceHandler.ResourceWorker extends AbstractResourceHandler.IOWorker
| 限定符和类型 | 字段和说明 |
|---|---|
private File |
file |
private boolean |
isDirectory |
private String |
pathWithoutTrailingSlash |
private InputStream |
resource |
control, path, response| 限定符 | 构造器和说明 |
|---|---|
protected |
EmbeddedResourceHandler.ResourceWorker(HttpRequest request,
HttpResponse response,
HttpControl control) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected byte[] |
directoryListingBytes() |
protected boolean |
exists() |
protected byte[] |
fileBytes() |
private InputStream |
getResource(File file) |
protected boolean |
isDirectory() |
private byte[] |
read(InputStream content) |
protected byte[] |
welcomeBytes() |
error, extractQuery, notFound, read, run, withoutQueryprivate InputStream resource
private File file
private final String pathWithoutTrailingSlash
private final boolean isDirectory
protected EmbeddedResourceHandler.ResourceWorker(HttpRequest request, HttpResponse response, HttpControl control)
protected boolean exists()
throws IOException
exists 在类中 AbstractResourceHandler.IOWorkerIOExceptionprotected boolean isDirectory()
throws IOException
isDirectory 在类中 AbstractResourceHandler.IOWorkerIOExceptionprotected byte[] fileBytes()
throws IOException
fileBytes 在类中 AbstractResourceHandler.IOWorkerIOExceptionprotected byte[] welcomeBytes()
throws IOException
welcomeBytes 在类中 AbstractResourceHandler.IOWorkerIOExceptionprotected byte[] directoryListingBytes()
throws IOException
private byte[] read(InputStream content) throws IOException
IOExceptionprivate InputStream getResource(File file) throws IOException
IOExceptionCopyright © 2014. All rights reserved.