Class TomcatServiceBuilder
java.lang.Object
com.linecorp.armeria.server.tomcat.TomcatServiceBuilder
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 TypeMethodDescriptionSets the base directory of an embedded Tomcat.Sets the base directory of an embedded Tomcat.build()
Returns a newly-createdTomcatService
based on the properties of this builder.configurator
(Consumer<? super StandardServer> configurator) Adds aConsumer
that performs additional configuration operations against the TomcatStandardServer
created by aTomcatService
.engineName
(String engineName) Sets the name of theStandardEngine
of an embedded Tomcat.Sets the hostname of an embedded Tomcat.Sets theRealm
of an embedded Tomcat.serviceName
(String serviceName) Sets the name of theStandardService
of an embedded Tomcat.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
-