Class SymmetricWebServer

java.lang.Object
org.jumpmind.symmetric.SymmetricWebServer

public class SymmetricWebServer extends Object
Start up SymmetricDS through Spring Boot
See Also:
  • Field Details

    • DEFAULT_WEBAPP_DIR

      protected static final String DEFAULT_WEBAPP_DIR
    • DEFAULT_HTTP_PORT

      public static final String DEFAULT_HTTP_PORT
    • DEFAULT_HTTPS_PORT

      public static final String 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

      protected String 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

      protected String propertiesFile
    • host

      protected String host
    • webAppDir

      protected String webAppDir
    • name

      protected String name
    • httpsNeedClientAuth

      protected boolean httpsNeedClientAuth
    • httpsWantClientAuth

      protected boolean httpsWantClientAuth
  • Constructor Details

    • SymmetricWebServer

      public SymmetricWebServer()
    • SymmetricWebServer

      public SymmetricWebServer(String propertiesUrl)
    • SymmetricWebServer

      public SymmetricWebServer(int maxIdleTime, String propertiesUrl)
    • SymmetricWebServer

      public SymmetricWebServer(String webappDir, int maxIdleTime, String propertiesUrl, boolean join)
    • SymmetricWebServer

      public SymmetricWebServer(String propertiesUrl, String webappDir)
  • Method Details

    • initFromProperties

      protected final void initFromProperties()
    • start

      public SymmetricWebServer start() throws Exception
      Throws:
      Exception
    • setSystemPropertyIfNotNull

      protected void setSystemPropertyIfNotNull(String property, String value)
    • start

      public SymmetricWebServer start(int httpPort) throws Exception
      Throws:
      Exception
    • startSecure

      public SymmetricWebServer startSecure(int httpsPort) throws Exception
      Throws:
      Exception
    • startMixed

      public SymmetricWebServer startMixed(int httpPort, int httpsPort) throws Exception
      Throws:
      Exception
    • getServletContext

      public jakarta.servlet.ServletContext getServletContext()
    • getEngine

      public ISymmetricEngine getEngine()
    • getEngine

      public ISymmetricEngine getEngine(String name)
    • waitForEnginesToComeOnline

      public void waitForEnginesToComeOnline(long maxWaitTimeInMs) throws InterruptedException
      Throws:
      InterruptedException
    • stop

      public void stop() throws Exception
      Throws:
      Exception
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception
    • isJoin

      public boolean isJoin()
    • setJoin

      public void setJoin(boolean join)
    • setWebHome

      public void setWebHome(String webHome)
    • 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

      public void setPropertiesFile(String propertiesFile)
    • setHost

      public void setHost(String host)
    • setWebAppDir

      public void setWebAppDir(String webAppDir)
    • setName

      public void setName(String name)
    • getName

      public String 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)