类 EmbeddedJettyServer
java.lang.Object
com.github.codeboyzhou.mcp.declarative.server.EmbeddedJettyServer
Embedded Jetty HTTP server implementation.
- 作者:
- codeboyzhou
-
构造器详细资料
-
EmbeddedJettyServer
public EmbeddedJettyServer()Constructor to initialize Jetty HTTP server with a single thread.
-
-
方法详细资料
-
use
Register a servlet to be handled by Jetty HTTP server.- 参数:
servlet- the servlet to be registered- 返回:
- this server instance
-
bind
Bind Jetty HTTP server to a specific port.- 参数:
port- the port to bind the server to- 返回:
- this server instance
-
start
public void start()Start Jetty HTTP server and bind it to the specified port.
-