mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-25 00:11:52 +08:00
fix: server not supported
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
package com.reajason.javaweb;
|
package com.reajason.javaweb;
|
||||||
|
|
||||||
import com.reajason.javaweb.config.*;
|
import com.reajason.javaweb.config.*;
|
||||||
|
import com.reajason.javaweb.memsell.jboss.JbossShell;
|
||||||
import com.reajason.javaweb.memsell.jetty.JettyShell;
|
import com.reajason.javaweb.memsell.jetty.JettyShell;
|
||||||
import com.reajason.javaweb.memsell.packer.Packer;
|
import com.reajason.javaweb.memsell.packer.Packer;
|
||||||
import com.reajason.javaweb.memsell.tomcat.TomcatShell;
|
import com.reajason.javaweb.memsell.tomcat.TomcatShell;
|
||||||
|
import com.reajason.javaweb.memsell.undertow.UndertowShell;
|
||||||
import lombok.SneakyThrows;
|
import lombok.SneakyThrows;
|
||||||
import org.apache.commons.codec.binary.Base64;
|
import org.apache.commons.codec.binary.Base64;
|
||||||
|
|
||||||
@@ -19,6 +21,8 @@ import java.nio.file.StandardOpenOption;
|
|||||||
public class GeneratorMain {
|
public class GeneratorMain {
|
||||||
static TomcatShell tomcatShell = new TomcatShell();
|
static TomcatShell tomcatShell = new TomcatShell();
|
||||||
static JettyShell jettyShell = new JettyShell();
|
static JettyShell jettyShell = new JettyShell();
|
||||||
|
static JbossShell jbossAsShell = new JbossShell();
|
||||||
|
static UndertowShell undertowShell = new UndertowShell();
|
||||||
|
|
||||||
public static void main(String[] args) throws IOException {
|
public static void main(String[] args) throws IOException {
|
||||||
ShellConfig shellConfig = ShellConfig.builder()
|
ShellConfig shellConfig = ShellConfig.builder()
|
||||||
@@ -47,6 +51,10 @@ public class GeneratorMain {
|
|||||||
return tomcatShell.generate(shellConfig, injectorConfig, shellToolConfig);
|
return tomcatShell.generate(shellConfig, injectorConfig, shellToolConfig);
|
||||||
case JETTY:
|
case JETTY:
|
||||||
return jettyShell.generate(shellConfig, injectorConfig, shellToolConfig);
|
return jettyShell.generate(shellConfig, injectorConfig, shellToolConfig);
|
||||||
|
case JBOSS:
|
||||||
|
return jbossAsShell.generate(shellConfig, injectorConfig, shellToolConfig);
|
||||||
|
case UNDERTOW:
|
||||||
|
return undertowShell.generate(shellConfig, injectorConfig, shellToolConfig);
|
||||||
case BES:
|
case BES:
|
||||||
break;
|
break;
|
||||||
case RESIN:
|
case RESIN:
|
||||||
|
|||||||
Reference in New Issue
Block a user