public class IntegrationServletContainer
extends java.lang.Object
| Constructor and Description |
|---|
IntegrationServletContainer() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<java.lang.String> |
buildProperties() |
protected void |
createServer() |
protected java.util.concurrent.CompletableFuture |
createServletChecker(ServletDefinition servletDefinition) |
protected java.lang.String |
getAbsolutePath(java.lang.String path)
The method constructs absolute path.
|
java.lang.String |
getConnectionPath() |
java.lang.String |
getHeartbeat() |
protected java.lang.String |
getJavaPath() |
java.lang.String |
getLogFilePath() |
java.util.Properties |
getProperties() |
java.lang.Process |
getServerProcess() |
java.lang.String |
getWarPath() |
java.lang.String |
getWebappRunnerJarFile() |
boolean |
isRunning() |
void |
setConnectionPath(java.lang.String connectionPath) |
void |
setHeartbeat(java.lang.String path)
Path to resource, which can indicate the servlet is alive.
|
void |
setJettyConfigPath(java.lang.String jettyConfigPath)
Path to jetty config file.
|
void |
setLibPath(java.lang.String libPath)
Path to jetty lib folder.
|
void |
setLogFilePath(java.lang.String path)
File where to store server console output.
|
void |
setPort(java.lang.Integer port)
Port to run jetty.
|
void |
setProperties(java.util.Properties properties) |
void |
setServlets(java.util.List<ServletDefinition> servlets)
Servlet configurations to run.
|
void |
setWarPath(java.lang.String warPath)
Path to servlet file.
|
void |
setWebappRunnerJarFile(java.lang.String webappRunnerJarFile)
Sets the webappRunner jar file.
|
void |
start()
Start servlet container with
warPath deployed. |
protected java.lang.Integer |
startServletWithTimeout(ServletDefinition servletDefinition) |
void |
stop()
Stop servlet container.
|
protected void |
waitForServiceToStart() |
public void start()
warPath deployed.public void stop()
public boolean isRunning()
protected void createServer()
throws java.lang.Exception
java.lang.Exceptionprotected void waitForServiceToStart()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionprotected java.util.concurrent.CompletableFuture createServletChecker(ServletDefinition servletDefinition)
protected java.lang.Integer startServletWithTimeout(ServletDefinition servletDefinition)
protected java.util.List<java.lang.String> buildProperties()
protected java.lang.String getJavaPath()
protected java.lang.String getAbsolutePath(java.lang.String path)
throws java.lang.Exception
path as a path, relative to location of
the IntegrationServletContainer class itself.java.io.FileNotFoundException - if given file does not existjava.lang.Exceptionpublic java.lang.String getConnectionPath()
public java.lang.String getWarPath()
public java.util.Properties getProperties()
public java.lang.String getLogFilePath()
public java.lang.String getHeartbeat()
public java.lang.Process getServerProcess()
public java.lang.String getWebappRunnerJarFile()
public void setWebappRunnerJarFile(java.lang.String webappRunnerJarFile)
webappRunnerJarFile - The jar file name and location.public void setProperties(java.util.Properties properties)
properties - properties to pass to servletpublic void setLogFilePath(java.lang.String path)
Directory provided must exist. If the file exists, log info will be appended. If there is no such file, it will be created. No log rotation.
Default value is ../../log/atddrunner.log
path - path to log filepublic void setHeartbeat(java.lang.String path)
path - absolute path to heartbeat resourcepublic void setConnectionPath(java.lang.String connectionPath)
connectionPath - servlet end point URIpublic void setWarPath(java.lang.String warPath)
warPath - path to servlet filepublic void setJettyConfigPath(java.lang.String jettyConfigPath)
jettyConfigPath - path to custom jetty config filepublic void setLibPath(java.lang.String libPath)
libPath - path to jetty lib folderpublic void setPort(java.lang.Integer port)
port - the port number of the jetty instance.public void setServlets(java.util.List<ServletDefinition> servlets)
warPath was configured (optionally with connectionPath) it also would be added to jetty
as an extra ServletDefinition together with the list.servlets - list of servlet configurationsCopyright © 2018 SAP SE. All Rights Reserved.