Class TomcatServiceBuilder
java.lang.Object
com.linecorp.armeria.server.tomcat.TomcatServiceBuilder
public final class TomcatServiceBuilder extends Object
Builds a
TomcatService
. Use the factory methods in TomcatService
if you do not override
the default settings or you have a configured Tomcat
or Connector
instance.-
Method Summary
Modifier and Type Method Description TomcatServiceBuilder
baseDir(String baseDir)
Sets the base directory of an embedded Tomcat.TomcatServiceBuilder
baseDir(Path baseDir)
Sets the base directory of an embedded Tomcat.TomcatService
build()
Returns a newly-createdTomcatService
based on the properties of this builder.TomcatServiceBuilder
configurator(Consumer<? super StandardServer> configurator)
Adds aConsumer
that performs additional configuration operations against the TomcatStandardServer
created by aTomcatService
.TomcatServiceBuilder
engineName(String engineName)
Sets the name of theStandardEngine
of an embedded Tomcat.TomcatServiceBuilder
hostname(String hostname)
Sets the hostname of an embedded Tomcat.TomcatServiceBuilder
realm(Realm realm)
Sets theRealm
of an embedded Tomcat.TomcatServiceBuilder
serviceName(String serviceName)
Sets the name of theStandardService
of an embedded Tomcat.String
toString()
-
Method Details
-
serviceName
Sets the name of theStandardService
of an embedded Tomcat. The default serviceName is"Catalina"
. -
engineName
Sets the name of theStandardEngine
of an embedded Tomcat.serviceName(String)
will be used instead if not set. -
baseDir
Sets the base directory of an embedded Tomcat. -
baseDir
Sets the base directory of an embedded Tomcat. -
realm
Sets theRealm
of an embedded Tomcat. -
hostname
Sets the hostname of an embedded Tomcat. -
configurator
Adds aConsumer
that performs additional configuration operations against the TomcatStandardServer
created by aTomcatService
. -
build
Returns a newly-createdTomcatService
based on the properties of this builder. -
toString
-