Class JettyServiceBuilder
java.lang.Object
com.linecorp.armeria.server.jetty.JettyServiceBuilder
-
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
.build()
Returns a newly-createdJettyService
based on the properties of this builder.configurator
(Consumer<? super Server> configurator) Deprecated.customizer
(Consumer<? super Server> customizer) Adds aConsumer
that performs additional configuration operations against the JettyServer
created by aJettyService
.dumpAfterStart
(boolean dumpAfterStart) Sets whether the JettyServer
needs to dump its configuration after it started up.dumpBeforeStop
(boolean dumpBeforeStop) Sets whether the JettyServer
needs to dump its configuration before it shuts down.eventListener
(org.eclipse.jetty.util.component.Container.Listener eventListener) Adds the specified event listener to the JettyServer
.handlerWrapper
(HandlerWrapper handlerWrapper) Adds the specifiedHandlerWrapper
to the JettyServer
.Sets the default hostname of the JettyServer
.httpConfiguration
(HttpConfiguration httpConfiguration) Adds the specifiedHttpConfiguration
to the JettyServer
.lifeCycleListener
(org.eclipse.jetty.util.component.LifeCycle.Listener lifeCycleListener) Adds the specified life cycle listener to the JettyServer
.requestLog
(RequestLog requestLog) Sets theRequestLog
of the JettyServer
.sessionIdManager
(SessionIdManager sessionIdManager) Sets theSessionIdManager
of the JettyServer
.sessionIdManagerFactory
(Function<? super Server, ? extends SessionIdManager> sessionIdManagerFactory) Sets the factory that creates a new instance ofSessionIdManager
for 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.toString()
-
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 JettyServer
needs to dump its configuration after it started up.- See Also:
-
dumpBeforeStop
Sets whether the JettyServer
needs to dump its configuration before it shuts down.- See Also:
-
handler
- See Also:
-
handlerWrapper
Adds the specifiedHandlerWrapper
to the JettyServer
. -
httpConfiguration
Adds the specifiedHttpConfiguration
to the JettyServer
. This method is a type-safe alias ofbean(Object)
. -
requestLog
Sets theRequestLog
of the JettyServer
.- See Also:
-
sessionIdManager
Sets theSessionIdManager
of the JettyServer
. This method is a shortcut for:sessionIdManagerFactory(server -> sessionIdManager);
-
sessionIdManagerFactory
public JettyServiceBuilder sessionIdManagerFactory(Function<? super Server, ? extends SessionIdManager> sessionIdManagerFactory) Sets the factory that creates a new instance ofSessionIdManager
for the JettyServer
. -
stopTimeoutMillis
Sets the graceful stop time of theAbstractLifeCycle.stop()
in milliseconds.- See Also:
-
eventListener
public JettyServiceBuilder eventListener(org.eclipse.jetty.util.component.Container.Listener eventListener) Adds the specified event listener to the JettyServer
. -
lifeCycleListener
public JettyServiceBuilder lifeCycleListener(org.eclipse.jetty.util.component.LifeCycle.Listener lifeCycleListener) Adds the specified life cycle listener to the JettyServer
. -
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 aConsumer
that performs additional configuration operations against the JettyServer
created by aJettyService
. -
configurator
Deprecated.Usecustomizer(Consumer)
.Adds aConsumer
that performs additional configuration operations against the JettyServer
created by aJettyService
. -
build
Returns a newly-createdJettyService
based on the properties of this builder. -
toString
-
customizer(Consumer)
.