feat: add godzilla filter generate

This commit is contained in:
ReaJason
2024-11-24 04:48:15 +08:00
parent 033bc2b9a5
commit b31db5c1ac
27 changed files with 1438 additions and 10 deletions
@@ -0,0 +1,69 @@
package com.reajason.javaweb.config;
/**
* @author ReaJason
* @since 2024/11/22
*/
public enum Server {
/**
* Tomcat 中间件
*/
TOMCAT,
/**
* Jetty 中间件
*/
JETTY,
/**
* JBoss 中间件
*/
JBOSS,
/**
* Undertow,对应是 Wildfly,也有可能是 SpringBoot 用的
*/
UNDERTOW,
/**
* SpringMVC 框架
*/
SPRING_MVC,
/**
* Spring Webflux 框架
*/
SPRING_WEBFLUX,
/**
* WebSphere 中间件
*/
WEBSPHERE,
/**
* WebLogic 中间件
*/
WEBLOGIC,
/**
* Resin 中间件
*/
RESIN,
/**
* Glassfish 中间件
*/
GLASSFISH,
/**
* 宝兰德中间件
*/
BES,
/**
* 东方通中间件
*/
TONGWEB,
/**
* 金蝶天燕中间件
*/
APUSIC
}
@@ -0,0 +1,17 @@
package com.reajason.javaweb.config;
/**
* @author ReaJason
* @since 2024/11/22
*/
public enum ShellTool {
/**
* 哥斯拉
*/
Godzilla,
/**
* 命令回显
*/
CMD
}
@@ -0,0 +1,41 @@
package com.reajason.javaweb.config;
import com.reajason.javaweb.memsell.tomcat.godzilla.GodzillaFilter;
import lombok.Getter;
/**
* @author ReaJason
* @since 2024/11/22
*/
public class TomcatShell {
public static final String SERVLET = "servlet";
public static final String JAKARTA_SERVLET = "jakartaServlet";
public static final String FILTER = "filter";
public static final String JAKARTA_FILTER = "jakartaFilter";
public static final String LISTENER = "listener";
public static final String JAKARTA_LISTENER = "jakartaListener";
public static final String WEBSOCKET = "websocket";
public static final String VALVE = "valve";
public static final String UPGRADE = "upgrade";
public static final String EXECUTOR = "executor";
@Getter
public static enum Godzilla {
/**
* Tomcat Filter
*/
Filter(TomcatShell.FILTER, GodzillaFilter.class),
;
Godzilla(String shellType, Class<?> shellClass) {
this.shellClass = shellClass;
this.shellType = shellType;
}
private final String shellType;
private final Class<?> shellClass;
}
}