Class AbstractJettyServiceBuilder
java.lang.Object
com.linecorp.armeria.server.jetty.AbstractJettyServiceBuilder
- Direct Known Subclasses:
JettyServiceBuilder
A skeletal builder implementation for
JettyServiceBuilder in Jetty 9 and Jetty 10+ modules.-
Method Summary
Modifier and TypeMethodDescriptionPuts the specified attribute into the JettyServer.Adds the specified bean to the JettyServer.Adds the specified bean to the JettyServer.configurator(Consumer<? super Server> configurator) Deprecated.customizer(Consumer<? super Server> customizer) Adds aConsumerthat performs additional configuration operations against the JettyServercreated by aJettyService.dumpAfterStart(boolean dumpAfterStart) Sets whether the JettyServerneeds to dump its configuration after it started up.dumpBeforeStop(boolean dumpBeforeStop) Sets whether the JettyServerneeds to dump its configuration before it shuts down.handlerWrapper(HandlerWrapper handlerWrapper) Adds the specifiedHandlerWrapperto the JettyServer.Sets the default hostname of the JettyServer.httpConfiguration(HttpConfiguration httpConfiguration) Adds the specifiedHttpConfigurationto the JettyServer.requestLog(RequestLog requestLog) Sets theRequestLogof the JettyServer.sessionIdManager(SessionIdManager sessionIdManager) Sets theSessionIdManagerof the JettyServer.sessionIdManagerFactory(Function<? super Server, ? extends SessionIdManager> sessionIdManagerFactory) Sets the factory that creates a new instance ofSessionIdManagerfor the JettyServer.stopTimeoutMillis(long stopTimeoutMillis) Sets the graceful stop time of theAbstractLifeCycle.stop()in milliseconds.tlsReverseDnsLookup(boolean tlsReverseDnsLookup) Sets whether Jetty has to perform reverse DNS lookup for the remote IP address on a TLS connection.
-
Method Details
-
hostname
Sets the default hostname of the JettyServer. -
attr
Puts the specified attribute into the JettyServer.- See Also:
-
bean
Adds the specified bean to the JettyServer.- See Also:
-
ContainerLifeCycle.addBean(Object)
-
bean
Adds the specified bean to the JettyServer.- See Also:
-
ContainerLifeCycle.addBean(Object, boolean)
-
dumpAfterStart
Sets whether the JettyServerneeds to dump its configuration after it started up.- See Also:
-
dumpBeforeStop
Sets whether the JettyServerneeds to dump its configuration before it shuts down.- See Also:
-
handler
- See Also:
-
handlerWrapper
Adds the specifiedHandlerWrapperto the JettyServer. -
httpConfiguration
Adds the specifiedHttpConfigurationto the JettyServer. This method is a type-safe alias ofbean(Object). -
requestLog
Sets theRequestLogof the JettyServer.- See Also:
-
sessionIdManager
Sets theSessionIdManagerof the JettyServer. This method is a shortcut for:sessionIdManagerFactory(server -> sessionIdManager); -
sessionIdManagerFactory
public AbstractJettyServiceBuilder sessionIdManagerFactory(Function<? super Server, ? extends SessionIdManager> sessionIdManagerFactory) Sets the factory that creates a new instance ofSessionIdManagerfor the JettyServer. -
stopTimeoutMillis
Sets the graceful stop time of theAbstractLifeCycle.stop()in milliseconds.- See Also:
-
tlsReverseDnsLookup
Sets whether Jetty has to perform reverse DNS lookup for the remote IP address on a TLS connection. By default, this flag is disabled because it is known to cause performance issues when the DNS server is not responsive enough. However, you might want to take the risk and enable it if you want the same behavior with Jetty 9.3 when mTLS is enabled.- See Also:
-
customizer
Adds aConsumerthat performs additional configuration operations against the JettyServercreated by aJettyService. -
configurator
Deprecated.Usecustomizer(Consumer).Adds aConsumerthat performs additional configuration operations against the JettyServercreated by aJettyService.
-
customizer(Consumer).