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 String
static final int
static final String
static final Path
static final String
static final String
private static final org.slf4j.Logger
private final int
private final Path
private org.eclipse.jetty.server.Server
static final String
static final String
static 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.servlet.ServletHolder servletHolder, @Nullable String servletPath) -
addConnector
private void addConnector() -
start
- Throws:
Exception
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
stop
- Throws:
Exception
-
getUri
-
newSslContextFactory
private static org.eclipse.jetty.util.ssl.SslContextFactory.Server newSslContextFactory()
-