Package | Description |
---|---|
spark |
Modifier and Type | Method and Description |
---|---|
Service |
Service.externalStaticFileLocation(String externalFolder)
Sets the external folder serving static files.
|
static Service |
Service.ignite()
Creates a new Service (a Spark instance).
|
Service |
Service.ipAddress(String ipAddress)
Set the IP address that Spark should listen on.
|
Service |
Service.port(int port)
Set the port that Spark should listen on.
|
Service |
Service.secure(String keystoreFile,
String keystorePassword,
String truststoreFile,
String truststorePassword)
Set the connection to be secure, using the specified keystore and
truststore.
|
Service |
Service.secure(String keystoreFile,
String keystorePassword,
String truststoreFile,
String truststorePassword,
boolean needsClientCert)
Set the connection to be secure, using the specified keystore and
truststore.
|
Service |
Service.staticFileLocation(String folder)
Sets the folder in classpath serving static files.
|
Service |
Service.threadPool(int maxThreads)
Configures the embedded web server's thread pool.
|
Service |
Service.threadPool(int maxThreads,
int minThreads,
int idleTimeoutMillis)
Configures the embedded web server's thread pool.
|
Service |
Service.webSocketIdleTimeoutMillis(int timeoutMillis)
Sets the max idle timeout in milliseconds for WebSocket connections.
|
Copyright © 2017. All rights reserved.