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-createdTomcatServicebased on the properties of this builder.configurator(Consumer<? super StandardServer> configurator) Adds aConsumerthat performs additional configuration operations against the TomcatStandardServercreated by aTomcatService.engineName(String engineName) Sets the name of theStandardEngineof an embedded Tomcat.Sets the hostname of an embedded Tomcat.Sets theRealmof an embedded Tomcat.serviceName(String serviceName) Sets the name of theStandardServiceof an embedded Tomcat.toString()
-
Method Details
-
serviceName
Sets the name of theStandardServiceof an embedded Tomcat. The default serviceName is"Catalina". -
engineName
Sets the name of theStandardEngineof 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 theRealmof an embedded Tomcat. -
hostname
Sets the hostname of an embedded Tomcat. -
configurator
Adds aConsumerthat performs additional configuration operations against the TomcatStandardServercreated by aTomcatService. -
build
Returns a newly-createdTomcatServicebased on the properties of this builder. -
toString
-