mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-24 18:04:54 +08:00
add constructor
This commit is contained in:
parent
9163963d49
commit
1176b144d7
@ -27,6 +27,7 @@ import org.dromara.hutool.http.server.filter.HttpFilter;
|
||||
import org.dromara.hutool.http.server.filter.SimpleFilter;
|
||||
import org.dromara.hutool.http.server.handler.ActionHandler;
|
||||
|
||||
import javax.net.ssl.SSLContext;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.net.InetSocketAddress;
|
||||
@ -70,7 +71,17 @@ public class SimpleServer {
|
||||
* @param address 监听地址
|
||||
*/
|
||||
public SimpleServer(final InetSocketAddress address) {
|
||||
this(address, null);
|
||||
this(address, (HttpsConfigurator) null);
|
||||
}
|
||||
|
||||
/**
|
||||
* 构造
|
||||
*
|
||||
* @param address 监听地址
|
||||
* @param sslContext ssl配置
|
||||
*/
|
||||
public SimpleServer(final InetSocketAddress address, final SSLContext sslContext) {
|
||||
this(address, new HttpsConfigurator(sslContext));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user