public final class HttpResourceServlet extends HttpServlet
详情见: http://www.redkale.org
| 限定符和类型 | 类和说明 |
|---|---|
protected class |
HttpResourceServlet.WatchThread |
| 限定符和类型 | 字段和说明 |
|---|---|
protected java.util.concurrent.atomic.LongAdder |
cachedLength |
protected long |
cachelengthmax |
protected long |
cachelimit |
protected java.util.concurrent.ConcurrentHashMap<java.lang.String,org.redkale.net.http.HttpResourceServlet.FileEntry> |
files |
protected java.util.concurrent.ConcurrentHashMap<java.nio.file.WatchKey,java.nio.file.Path> |
keymaps |
protected java.util.AbstractMap.SimpleEntry<java.util.regex.Pattern,java.lang.String>[] |
locationRewrites |
protected java.util.function.Predicate<java.lang.String> |
ranges |
protected java.io.File |
root |
protected HttpResourceServlet.WatchThread |
watchThread |
| 构造器和说明 |
|---|
HttpResourceServlet() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy(HttpContext context,
AnyValue config) |
void |
execute(HttpRequest request,
HttpResponse response) |
void |
init(HttpContext context,
AnyValue config) |
equals, hashCodeprotected long cachelimit
protected final java.util.concurrent.atomic.LongAdder cachedLength
protected long cachelengthmax
protected java.io.File root
protected final java.util.concurrent.ConcurrentHashMap<java.lang.String,org.redkale.net.http.HttpResourceServlet.FileEntry> files
protected final java.util.concurrent.ConcurrentHashMap<java.nio.file.WatchKey,java.nio.file.Path> keymaps
protected java.util.AbstractMap.SimpleEntry<java.util.regex.Pattern,java.lang.String>[] locationRewrites
protected HttpResourceServlet.WatchThread watchThread
protected java.util.function.Predicate<java.lang.String> ranges
public void init(HttpContext context, AnyValue config)
init 在类中 Servlet<HttpContext,HttpRequest,HttpResponse>public void destroy(HttpContext context, AnyValue config)
destroy 在类中 Servlet<HttpContext,HttpRequest,HttpResponse>public void execute(HttpRequest request, HttpResponse response) throws java.io.IOException
execute 在类中 Servlet<HttpContext,HttpRequest,HttpResponse>java.io.IOException