Class JettyServiceBuilder
java.lang.Object
com.linecorp.armeria.server.jetty.AbstractJettyServiceBuilder
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-createdJettyServicebased on the properties of this builder.configurator(Consumer<? super Server> configurator) Adds aConsumerthat performs additional configuration operations against the JettyServercreated by aJettyService.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.eventListener(EventListener eventListener) Adds the specified event listener to the JettyServer.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
-
eventListener
Adds the specified event listener to the JettyServer. -
hostname
Description copied from class:AbstractJettyServiceBuilderSets the default hostname of the JettyServer.- Overrides:
hostnamein classAbstractJettyServiceBuilder
-
attr
Description copied from class:AbstractJettyServiceBuilderPuts the specified attribute into the JettyServer.- Overrides:
attrin classAbstractJettyServiceBuilder- See Also:
-
bean
Description copied from class:AbstractJettyServiceBuilderAdds the specified bean to the JettyServer.- Overrides:
beanin classAbstractJettyServiceBuilder- See Also:
-
ContainerLifeCycle.addBean(Object)
-
bean
Description copied from class:AbstractJettyServiceBuilderAdds the specified bean to the JettyServer.- Overrides:
beanin classAbstractJettyServiceBuilder- See Also:
-
ContainerLifeCycle.addBean(Object, boolean)
-
dumpAfterStart
Description copied from class:AbstractJettyServiceBuilderSets whether the JettyServerneeds to dump its configuration after it started up.- Overrides:
dumpAfterStartin classAbstractJettyServiceBuilder- See Also:
-
dumpBeforeStop
Description copied from class:AbstractJettyServiceBuilderSets whether the JettyServerneeds to dump its configuration before it shuts down.- Overrides:
dumpBeforeStopin classAbstractJettyServiceBuilder- See Also:
-
handler
Description copied from class:AbstractJettyServiceBuilder- Overrides:
handlerin classAbstractJettyServiceBuilder- See Also:
-
handlerWrapper
Description copied from class:AbstractJettyServiceBuilderAdds the specifiedHandlerWrapperto the JettyServer.- Overrides:
handlerWrapperin classAbstractJettyServiceBuilder- See Also:
-
httpConfiguration
Description copied from class:AbstractJettyServiceBuilderAdds the specifiedHttpConfigurationto the JettyServer. This method is a type-safe alias ofAbstractJettyServiceBuilder.bean(Object).- Overrides:
httpConfigurationin classAbstractJettyServiceBuilder
-
requestLog
Description copied from class:AbstractJettyServiceBuilderSets theRequestLogof the JettyServer.- Overrides:
requestLogin classAbstractJettyServiceBuilder- See Also:
-
sessionIdManager
Description copied from class:AbstractJettyServiceBuilderSets theSessionIdManagerof the JettyServer. This method is a shortcut for:sessionIdManagerFactory(server -> sessionIdManager);- Overrides:
sessionIdManagerin classAbstractJettyServiceBuilder- See Also:
-
sessionIdManagerFactory
public JettyServiceBuilder sessionIdManagerFactory(Function<? super Server, ? extends SessionIdManager> sessionIdManagerFactory) Description copied from class:AbstractJettyServiceBuilderSets the factory that creates a new instance ofSessionIdManagerfor the JettyServer.- Overrides:
sessionIdManagerFactoryin classAbstractJettyServiceBuilder- See Also:
-
stopTimeoutMillis
Description copied from class:AbstractJettyServiceBuilderSets the graceful stop time of theAbstractLifeCycle.stop()in milliseconds.- Overrides:
stopTimeoutMillisin classAbstractJettyServiceBuilder- See Also:
-
tlsReverseDnsLookup
Description copied from class:AbstractJettyServiceBuilderSets 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.- Overrides:
tlsReverseDnsLookupin classAbstractJettyServiceBuilder- See Also:
-
customizer
Description copied from class:AbstractJettyServiceBuilderAdds aConsumerthat performs additional configuration operations against the JettyServercreated by aJettyService.- Overrides:
customizerin classAbstractJettyServiceBuilder
-
configurator
Description copied from class:AbstractJettyServiceBuilderAdds aConsumerthat performs additional configuration operations against the JettyServercreated by aJettyService.- Overrides:
configuratorin classAbstractJettyServiceBuilder
-
build
Returns a newly-createdJettyServicebased on the properties of this builder.
-