Uses of Class
spark.Service
Packages that use Service
-
Uses of Service in spark
Modifier and TypeMethodDescriptionService.externalStaticFileLocation
(String externalFolder) Sets the external folder serving static files.private static Service
Spark.getInstance()
static Service
Service.ignite()
Creates a new Service (a Spark instance).Set the IP address that Spark should listen on.Service.port
(int port) Set the port that Spark should listen on.Service.secure
(String keystoreFile, String keystorePassword, String truststoreFile, String truststorePassword) Set the connection to be secure, using the specified keystore and truststore.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.secure
(String keystoreFile, String keystorePassword, String certAlias, String truststoreFile, String truststorePassword) Set the connection to be secure, using the specified keystore and truststore.Service.secure
(String keystoreFile, String keystorePassword, String certAlias, String truststoreFile, String truststorePassword, boolean needsClientCert) Set the connection to be secure, using the specified keystore and truststore.Service.staticFileLocation
(String folder) Sets the folder in classpath serving static files.Service.threadPool
(int maxThreads) Configures the embedded web server's thread pool.Service.threadPool
(int maxThreads, int minThreads, int idleTimeoutMillis) Configures the embedded web server's thread pool.Service.webSocketIdleTimeoutMillis
(int timeoutMillis) Sets the max idle timeout in milliseconds for WebSocket connections.