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)
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
.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.toString()
-
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
- See Also:
HandlerWrapper.setHandler(Handler)
-
handlerWrapper
Adds the specifiedHandlerWrapper
to the JettyServer
. -
requestLog
Sets theRequestLog
of the JettyServer
.- See Also:
Server.setRequestLog(RequestLog)
-
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:
Server.setStopTimeout(long)
-
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
. -
configurator
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
-