Package org.jumpmind.symmetric
Class SymmetricWebServer
java.lang.Object
org.jumpmind.symmetric.SymmetricWebServer
Start up SymmetricDS through Spring Boot
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ConfigurableApplicationContextstatic final Stringstatic final Stringstatic final intprotected static final Stringprotected Stringprotected booleanprotected intprotected booleanprotected booleanprotected booleanprotected intprotected booleanprotected booleanprotected intprotected Stringprotected Stringprotected Stringprotected String -
Constructor Summary
ConstructorsConstructorDescriptionSymmetricWebServer(int maxIdleTime, String propertiesUrl) SymmetricWebServer(String propertiesUrl) SymmetricWebServer(String webappDir, int maxIdleTime, String propertiesUrl, boolean join) SymmetricWebServer(String propertiesUrl, String webappDir) -
Method Summary
Modifier and TypeMethodDescriptionintintintgetName()jakarta.servlet.ServletContextprotected final voidbooleanbooleanbooleanbooleanbooleanbooleanisJoin()static voidvoidvoidsetHttpEnabled(boolean httpEnabled) voidsetHttpPort(int httpPort) voidsetHttps2Enabled(boolean https2Enabled) voidsetHttpsEnabled(boolean httpsEnabled) voidsetHttpsNeedClientAuth(boolean httpsNeedClientAuth) voidsetHttpsPort(int httpsPort) voidsetHttpsWantClientAuth(boolean httpsWantClientAuth) voidsetJoin(boolean join) voidsetMaxIdleTime(int maxIdleTime) voidvoidsetPropertiesFile(String propertiesFile) protected voidsetSystemPropertyIfNotNull(String property, String value) voidsetWebAppDir(String webAppDir) voidsetWebHome(String webHome) start()start(int httpPort) startMixed(int httpPort, int httpsPort) startSecure(int httpsPort) voidstop()voidwaitForEnginesToComeOnline(long maxWaitTimeInMs)
-
Field Details
-
DEFAULT_WEBAPP_DIR
-
DEFAULT_HTTP_PORT
-
DEFAULT_HTTPS_PORT
-
DEFAULT_MAX_IDLE_TIME
public static final int DEFAULT_MAX_IDLE_TIME- See Also:
-
context
protected org.springframework.context.ConfigurableApplicationContext context -
join
protected boolean join -
webHome
-
maxIdleTime
protected int maxIdleTime -
httpEnabled
protected boolean httpEnabled -
httpPort
protected int httpPort -
httpsEnabled
protected boolean httpsEnabled -
https2Enabled
protected boolean https2Enabled -
httpsPort
protected int httpsPort -
propertiesFile
-
host
-
webAppDir
-
name
-
httpsNeedClientAuth
protected boolean httpsNeedClientAuth -
httpsWantClientAuth
protected boolean httpsWantClientAuth
-
-
Constructor Details
-
SymmetricWebServer
public SymmetricWebServer() -
SymmetricWebServer
-
SymmetricWebServer
-
SymmetricWebServer
-
SymmetricWebServer
-
-
Method Details
-
initFromProperties
protected final void initFromProperties() -
start
- Throws:
Exception
-
setSystemPropertyIfNotNull
-
start
- Throws:
Exception
-
startSecure
- Throws:
Exception
-
startMixed
- Throws:
Exception
-
getServletContext
public jakarta.servlet.ServletContext getServletContext() -
getEngine
-
getEngine
-
waitForEnginesToComeOnline
- Throws:
InterruptedException
-
stop
- Throws:
Exception
-
main
- Throws:
Exception
-
isJoin
public boolean isJoin() -
setJoin
public void setJoin(boolean join) -
setWebHome
-
getMaxIdleTime
public int getMaxIdleTime() -
setMaxIdleTime
public void setMaxIdleTime(int maxIdleTime) -
setHttpPort
public void setHttpPort(int httpPort) -
getHttpPort
public int getHttpPort() -
setHttpsPort
public void setHttpsPort(int httpsPort) -
getHttpsPort
public int getHttpsPort() -
setPropertiesFile
-
setHost
-
setWebAppDir
-
setName
-
getName
-
setHttpEnabled
public void setHttpEnabled(boolean httpEnabled) -
isHttpEnabled
public boolean isHttpEnabled() -
setHttpsEnabled
public void setHttpsEnabled(boolean httpsEnabled) -
isHttpsEnabled
public boolean isHttpsEnabled() -
setHttps2Enabled
public void setHttps2Enabled(boolean https2Enabled) -
isHttps2Enabled
public boolean isHttps2Enabled() -
setHttpsNeedClientAuth
public void setHttpsNeedClientAuth(boolean httpsNeedClientAuth) -
isHttpsNeedClientAuth
public boolean isHttpsNeedClientAuth() -
isHttpsWantClientAuth
public boolean isHttpsWantClientAuth() -
setHttpsWantClientAuth
public void setHttpsWantClientAuth(boolean httpsWantClientAuth)
-