public class SparkServer extends Object
Constructor and Description |
---|
SparkServer(org.eclipse.jetty.server.Handler handler) |
Modifier and Type | Method and Description |
---|---|
void |
ignite(String host,
int port,
String keystoreFile,
String keystorePassword,
String truststoreFile,
String truststorePassword,
String staticFilesFolder,
String externalFilesFolder)
Ignites the spark server, listening on the specified port, running SSL secured with the specified keystore
and truststore.
|
void |
stop() |
public void ignite(String host, int port, String keystoreFile, String keystorePassword, String truststoreFile, String truststorePassword, String staticFilesFolder, String externalFilesFolder)
host
- The address to listen onport
- - the portkeystoreFile
- - The keystore file location as stringkeystorePassword
- - the password for the keystoretruststoreFile
- - the truststore file location as string, leave null to reuse keystoretruststorePassword
- - the trust store passwordstaticFilesFolder
- - the route to static files in classPathexternalFilesFolder
- - the route to static files external to classPath.public void stop()
Copyright © 2014. All rights reserved.