feat: support jetty handler shell

This commit is contained in:
ReaJason
2025-12-08 01:43:41 +08:00
parent 2fa3310bf8
commit f4a16e5d37
35 changed files with 901 additions and 113 deletions
@@ -0,0 +1,8 @@
package org.eclipse.jetty.server;
/**
* @author ReaJason
* @since 2025/12/2
*/
public class Connector {
}
@@ -0,0 +1,21 @@
package org.eclipse.jetty.server;
import org.eclipse.jetty.util.Callback;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* @author ReaJason
* @since 2025/11/29
*/
public interface Handler {
void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException;
boolean handle(Request request, Response response, Callback callback) throws Exception;
void handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) throws IOException, ServletException;
}
@@ -0,0 +1,11 @@
package org.eclipse.jetty.server;
/**
* @author ReaJason
* @since 2025/12/2
*/
public class HttpConfiguration {
public interface Customizer {
}
}
@@ -0,0 +1,8 @@
package org.eclipse.jetty.server;
/**
* @author ReaJason
* @since 2025/11/29
*/
public interface Request {
}
@@ -0,0 +1,8 @@
package org.eclipse.jetty.server;
/**
* @author ReaJason
* @since 2025/11/29
*/
public interface Response {
}
@@ -0,0 +1,8 @@
package org.eclipse.jetty.util;
/**
* @author ReaJason
* @since 2025/11/29
*/
public interface Callback {
}