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 org.eclipse.jetty.server.Server> configurator) Deprecated.customizer
(Consumer<? super org.eclipse.jetty.server.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.handler
(org.eclipse.jetty.server.Handler handler) Sets theHandler
of the JettyServer
.handlerWrapper
(org.eclipse.jetty.server.handler.HandlerWrapper handlerWrapper) Adds the specifiedHandlerWrapper
to the JettyServer
.Sets the default hostname of the JettyServer
.httpConfiguration
(org.eclipse.jetty.server.HttpConfiguration httpConfiguration) Adds the specifiedHttpConfiguration
to the JettyServer
.requestLog
(org.eclipse.jetty.server.RequestLog requestLog) Sets theRequestLog
of the JettyServer
.sessionIdManager
(org.eclipse.jetty.server.SessionIdManager sessionIdManager) Sets theSessionIdManager
of the JettyServer
.sessionIdManagerFactory
(Function<? super org.eclipse.jetty.server.Server, ? extends org.eclipse.jetty.server.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.
-
Method Details
-
hostname
Sets the default hostname of the JettyServer
. -
attr
Puts the specified attribute into the JettyServer
.- See Also:
-
Server.setAttribute(String, Object)
-
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:
-
Server.setDumpAfterStart(boolean)
-
dumpBeforeStop
Sets whether the JettyServer
needs to dump its configuration before it shuts down.- See Also:
-
Server.setDumpBeforeStop(boolean)
-
handler
Sets theHandler
of the JettyServer
.- See Also:
-
HandlerWrapper.setHandler(Handler)
-
handlerWrapper
public AbstractJettyServiceBuilder handlerWrapper(org.eclipse.jetty.server.handler.HandlerWrapper handlerWrapper) Adds the specifiedHandlerWrapper
to the JettyServer
.- See Also:
-
HandlerWrapper.insertHandler(HandlerWrapper)
-
httpConfiguration
public AbstractJettyServiceBuilder httpConfiguration(org.eclipse.jetty.server.HttpConfiguration httpConfiguration) Adds the specifiedHttpConfiguration
to the JettyServer
. This method is a type-safe alias ofbean(Object)
. -
requestLog
Sets theRequestLog
of the JettyServer
.- See Also:
-
Server.setRequestLog(RequestLog)
-
sessionIdManager
public AbstractJettyServiceBuilder sessionIdManager(org.eclipse.jetty.server.SessionIdManager sessionIdManager) Sets theSessionIdManager
of the JettyServer
. This method is a shortcut for:sessionIdManagerFactory(server -> sessionIdManager);
- See Also:
-
Server.setSessionIdManager(SessionIdManager)
-
sessionIdManagerFactory
public AbstractJettyServiceBuilder sessionIdManagerFactory(Function<? super org.eclipse.jetty.server.Server, ? extends org.eclipse.jetty.server.SessionIdManager> sessionIdManagerFactory) Sets the factory that creates a new instance ofSessionIdManager
for the JettyServer
.- See Also:
-
Server.setSessionIdManager(SessionIdManager)
-
stopTimeoutMillis
Sets the graceful stop time of theAbstractLifeCycle.stop()
in milliseconds.- See Also:
-
Server.setStopTimeout(long)
-
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
public AbstractJettyServiceBuilder customizer(Consumer<? super org.eclipse.jetty.server.Server> customizer) Adds aConsumer
that performs additional configuration operations against the JettyServer
created by aJettyService
. -
configurator
@Deprecated public AbstractJettyServiceBuilder configurator(Consumer<? super org.eclipse.jetty.server.Server> configurator) Deprecated.Usecustomizer(Consumer)
.Adds aConsumer
that performs additional configuration operations against the JettyServer
created by aJettyService
.
-
customizer(Consumer)
.