Class ServerConfiguration.Builder
java.lang.Object
io.github.rajendarreddyj.tomcat.config.ServerConfiguration.Builder
- Enclosing class:
ServerConfiguration
Builder for ServerConfiguration.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the ServerConfiguration.catalinaBase(Path catalinaBase) Sets the CATALINA_BASE directory.catalinaHome(Path catalinaHome) Sets the CATALINA_HOME directory.classpathAdditions(List<String> classpathAdditions) Sets the additional classpath entries.environmentVariables(Map<String, String> environmentVariables) Sets the environment variables.Sets the HTTP host.httpPort(int httpPort) Sets the HTTP port.Sets the Java home directory.shutdownTimeout(long shutdownTimeout) Sets the shutdown timeout.startupTimeout(long startupTimeout) Sets the startup timeout.Sets the JVM options.
-
Method Details
-
catalinaHome
Sets the CATALINA_HOME directory.- Parameters:
catalinaHome- the Tomcat installation directory- Returns:
- this builder
-
catalinaBase
Sets the CATALINA_BASE directory.- Parameters:
catalinaBase- the Tomcat instance directory- Returns:
- this builder
-
httpHost
Sets the HTTP host.- Parameters:
httpHost- the host to bind to- Returns:
- this builder
-
httpPort
Sets the HTTP port.- Parameters:
httpPort- the port number- Returns:
- this builder
-
javaHome
Sets the Java home directory.- Parameters:
javaHome- the Java installation directory- Returns:
- this builder
-
vmOptions
Sets the JVM options.- Parameters:
vmOptions- the JVM options- Returns:
- this builder
-
environmentVariables
Sets the environment variables.- Parameters:
environmentVariables- the environment variables- Returns:
- this builder
-
startupTimeout
Sets the startup timeout.- Parameters:
startupTimeout- the timeout in milliseconds- Returns:
- this builder
-
shutdownTimeout
Sets the shutdown timeout.- Parameters:
shutdownTimeout- the timeout in milliseconds- Returns:
- this builder
-
classpathAdditions
Sets the additional classpath entries.- Parameters:
classpathAdditions- the classpath additions- Returns:
- this builder
-
build
Builds the ServerConfiguration.- Returns:
- the ServerConfiguration instance
-