This commit is contained in:
@@ -130,6 +130,9 @@ public abstract class BasedHttpServlet extends HttpServlet {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final void postDestroy(HttpContext context, AnyValue config) {
|
||||||
|
}
|
||||||
|
|
||||||
public abstract boolean authenticate(int module, int actionid, HttpRequest request, HttpResponse response) throws IOException;
|
public abstract boolean authenticate(int module, int actionid, HttpRequest request, HttpResponse response) throws IOException;
|
||||||
|
|
||||||
private HashMap<String, Entry> load() {
|
private HashMap<String, Entry> load() {
|
||||||
|
|||||||
@@ -136,7 +136,11 @@ public final class HttpPrepareServlet extends PrepareServlet<HttpContext, HttpRe
|
|||||||
this.resourceHttpServlet.destroy(context, config);
|
this.resourceHttpServlet.destroy(context, config);
|
||||||
this.servlets.stream().forEach(s -> {
|
this.servlets.stream().forEach(s -> {
|
||||||
s.destroy(context, s._conf);
|
s.destroy(context, s._conf);
|
||||||
if (s instanceof WebSocketServlet) ((WebSocketServlet) s).postDestroy(context, s._conf);
|
if (s instanceof WebSocketServlet) {
|
||||||
|
((WebSocketServlet) s).postDestroy(context, s._conf);
|
||||||
|
} else if (s instanceof BasedHttpServlet) {
|
||||||
|
((BasedHttpServlet) s).postDestroy(context, s._conf);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user