public class Jetty9Runner extends Object
Jetty9Runner| Constructor and Description |
|---|
Jetty9Runner() |
| Modifier and Type | Method and Description |
|---|---|
static File |
getLogFile(File projectDirectory,
String logFileName)
Gets the log file.
|
static org.eclipse.jetty.webapp.WebAppContext |
getWebAppContext(org.eclipse.jetty.server.Server server,
String projectname)
Gets the web app context.
|
static File |
getWebappDirectory(File projectDirectory,
String projectName)
Gets the webapp directory.
|
static de.alpharogroup.jetty9.runner.config.Jetty9RunConfiguration |
newJetty9RunConfiguration(org.eclipse.jetty.servlet.ServletContextHandler servletContextHandler,
org.eclipse.jetty.server.handler.ContextHandlerCollection contexts,
org.eclipse.jetty.deploy.DeploymentManager deployer,
de.alpharogroup.jetty9.runner.config.StartConfig startConfig)
Factory method for create the
Jetty9RunConfiguration and set the ports from the
config file or take the default if in config file is not set. |
static void |
run(de.alpharogroup.jetty9.runner.config.Jetty9RunConfiguration config)
Run a jetty server with the given parameters.
|
static void |
run(org.eclipse.jetty.server.Server server,
de.alpharogroup.jetty9.runner.config.Jetty9RunConfiguration config)
Run a jetty server with the given parameters.
|
static void |
run(org.eclipse.jetty.server.Server server,
org.eclipse.jetty.servlet.ServletContextHandler servletContextHandler,
int httpPort,
int httpsPort,
String keyStorePassword,
String keyStorePathResource)
Run a jetty server with the given parameters.
|
static void |
run(org.eclipse.jetty.servlet.ServletContextHandler servletContextHandler,
int httpPort,
int httpsPort,
String keyStorePassword)
Run a jetty server with the given parameters.
|
static void |
run(de.alpharogroup.jetty9.runner.config.StartConfig startConfig,
org.eclipse.jetty.server.Server server)
Run a jetty server with the given
StartConfig object on the given Server
object. |
static void |
runServletContextHandler(org.eclipse.jetty.server.Server server,
de.alpharogroup.jetty9.runner.config.Jetty9RunConfiguration config)
Run a jetty server with the given parameters.
|
static void |
runWithNewServer(org.eclipse.jetty.servlet.ServletContextHandler servletContextHandler,
int httpPort,
int httpsPort)
Run with new server.
|
static void |
runWithNewServer(org.eclipse.jetty.servlet.ServletContextHandler servletContextHandler,
int httpPort,
int httpsPort,
String keyStorePassword)
Run with new server.
|
public static final String HTTPS
public static File getLogFile(File projectDirectory, String logFileName)
projectDirectory - the project directorylogFileName - the log file namepublic static org.eclipse.jetty.webapp.WebAppContext getWebAppContext(org.eclipse.jetty.server.Server server,
String projectname)
server - the serverprojectname - the projectnamepublic static File getWebappDirectory(File projectDirectory, String projectName)
projectDirectory - the project directoryprojectName - the project namepublic static de.alpharogroup.jetty9.runner.config.Jetty9RunConfiguration newJetty9RunConfiguration(org.eclipse.jetty.servlet.ServletContextHandler servletContextHandler,
org.eclipse.jetty.server.handler.ContextHandlerCollection contexts,
org.eclipse.jetty.deploy.DeploymentManager deployer,
de.alpharogroup.jetty9.runner.config.StartConfig startConfig)
Jetty9RunConfiguration and set the ports from the
config file or take the default if in config file is not set.servletContextHandler - the servlet context handlercontexts - the contextsdeployer - the deployerstartConfig - the start configJetty9RunConfiguration.public static void run(de.alpharogroup.jetty9.runner.config.Jetty9RunConfiguration config)
config - the configpublic static void run(org.eclipse.jetty.server.Server server,
de.alpharogroup.jetty9.runner.config.Jetty9RunConfiguration config)
server - the serverconfig - the configpublic static void run(org.eclipse.jetty.server.Server server,
org.eclipse.jetty.servlet.ServletContextHandler servletContextHandler,
int httpPort,
int httpsPort,
String keyStorePassword,
String keyStorePathResource)
server - the serverservletContextHandler - the servlet context handlerhttpPort - the http porthttpsPort - the https portkeyStorePassword - the key store passwordkeyStorePathResource - the key store path resourcepublic static void run(org.eclipse.jetty.servlet.ServletContextHandler servletContextHandler,
int httpPort,
int httpsPort,
String keyStorePassword)
servletContextHandler - the servlet context handlerhttpPort - the http porthttpsPort - the https portkeyStorePassword - the key store passwordpublic static void run(de.alpharogroup.jetty9.runner.config.StartConfig startConfig,
org.eclipse.jetty.server.Server server)
StartConfig object on the given Server
object.startConfig - the start configserver - the serverpublic static void runServletContextHandler(org.eclipse.jetty.server.Server server,
de.alpharogroup.jetty9.runner.config.Jetty9RunConfiguration config)
server - the serverconfig - the configpublic static void runWithNewServer(org.eclipse.jetty.servlet.ServletContextHandler servletContextHandler,
int httpPort,
int httpsPort)
servletContextHandler - the servlet context handlerhttpPort - the http porthttpsPort - the https portpublic static void runWithNewServer(org.eclipse.jetty.servlet.ServletContextHandler servletContextHandler,
int httpPort,
int httpsPort,
String keyStorePassword)
servletContextHandler - the servlet context handlerhttpPort - the http porthttpsPort - the https portkeyStorePassword - the key store passwordCopyright © 2015–2019 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.