Package ch.rswk.util.web.test
Class WebServer
java.lang.Object
ch.rswk.util.web.test.WebServer
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final Stringstatic final Pathstatic final Stringstatic final Stringprivate static final org.slf4j.Loggerprivate final intprivate final Pathprivate org.eclipse.jetty.server.Serverstatic final Stringstatic final Stringstatic final org.eclipse.jetty.util.ssl.SslContextFactory.Server -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
CIPHER_SUITES
-
DEFAULT_PORT
public static final int DEFAULT_PORT- See Also:
-
KEYSTORE_PW
- See Also:
-
PROTOCOLS
-
SERVER_DOMAIN
- See Also:
-
KEYSTORE_FILE
- See Also:
-
KEYSTORE
-
SSL_CONTEXT_FACTORY
public static final org.eclipse.jetty.util.ssl.SslContextFactory.Server SSL_CONTEXT_FACTORY -
CERT_FILE
- See Also:
-
KEY_FILE
- See Also:
-
SERVER_URL
- See Also:
-
port
private final int port -
resourceRoot
-
server
private org.eclipse.jetty.server.Server server
-
-
Constructor Details
-
WebServer
-
-
Method Details
-
setupServer
private void setupServer(@Nullable org.eclipse.jetty.ee10.servlet.ServletHolder servletHolder, @Nullable String servletPath) -
addConnector
private void addConnector() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getUri
-
newSslContextFactory
private static org.eclipse.jetty.util.ssl.SslContextFactory.Server newSslContextFactory() -
start
-
stop
-