Service |
Service.externalStaticFileLocation(java.lang.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).
|
Service |
Service.ipAddress(java.lang.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(java.lang.String keystoreFile,
java.lang.String keystorePassword,
java.lang.String truststoreFile,
java.lang.String truststorePassword) |
Set the connection to be secure, using the specified keystore and
truststore.
|
Service |
Service.secure(java.lang.String keystoreFile,
java.lang.String keystorePassword,
java.lang.String truststoreFile,
java.lang.String truststorePassword,
boolean needsClientCert) |
Set the connection to be secure, using the specified keystore and
truststore.
|
Service |
Service.secure(java.lang.String keystoreFile,
java.lang.String keystorePassword,
java.lang.String certAlias,
java.lang.String truststoreFile,
java.lang.String truststorePassword) |
Set the connection to be secure, using the specified keystore and
truststore.
|
Service |
Service.secure(java.lang.String keystoreFile,
java.lang.String keystorePassword,
java.lang.String certAlias,
java.lang.String truststoreFile,
java.lang.String truststorePassword,
boolean needsClientCert) |
Set the connection to be secure, using the specified keystore and
truststore.
|
Service |
Service.staticFileLocation(java.lang.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.
|