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
.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
.stopTimeoutMillis
(long stopTimeoutMillis) Sets the graceful stop time of theAbstractLifeCycle.stop()
in milliseconds.
-
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)
-
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)
-
stopTimeoutMillis
Sets the graceful stop time of theAbstractLifeCycle.stop()
in milliseconds.- See Also:
-
Server.setStopTimeout(long)
-
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)
.