Module io.helidon.webserver
Package io.helidon.webserver
Class WebServerConfig.BuilderBase.WebServerConfigImpl
java.lang.Object
io.helidon.webserver.ListenerConfig.BuilderBase.ListenerConfigImpl
io.helidon.webserver.WebServerConfig.BuilderBase.WebServerConfigImpl
- All Implemented Interfaces:
- Prototype.Api,- Prototype.Factory<WebServer>,- ListenerConfig,- WebServerConfig,- Supplier<WebServer>
- Enclosing class:
- WebServerConfig.BuilderBase<BUILDER extends WebServerConfig.BuilderBase<BUILDER,- PROTOTYPE>, - PROTOTYPE extends WebServerConfig> 
protected static class WebServerConfig.BuilderBase.WebServerConfigImpl
extends ListenerConfig.BuilderBase.ListenerConfigImpl
implements WebServerConfig, Supplier<WebServer>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.helidon.webserver.ListenerConfigListenerConfig.Builder, ListenerConfig.BuilderBase<BUILDER extends ListenerConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ListenerConfig> Nested classes/interfaces inherited from interface io.helidon.webserver.WebServerConfigWebServerConfig.Builder, WebServerConfig.BuilderBase<BUILDER extends WebServerConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends WebServerConfig> 
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedWebServerConfigImpl(WebServerConfig.BuilderBase<?, ?> builder) Create an instance providing a builder.
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Create a new instance of the runtime type from this config object.default voidconfigureSocket(ServerSocket socket) Update the server socket with configured socket options.booleanfeatures()Server features allow customization of the server, listeners, or routings.get()inthashCode()Routing for additional sockets.Context for the WebServer, if none defined, a new one will be created with global context as the root.booleanWhen true the webserver registers a shutdown hook with the JVM Runtime.sockets()Socket configurations.toString()Methods inherited from class io.helidon.webserver.ListenerConfig.BuilderBase.ListenerConfigImpladdress, backlog, concurrencyLimit, connectionConfig, connectionOptions, connectionSelectors, contentEncoding, directHandlers, enableProxyProtocol, errorHandling, host, idleConnectionPeriod, idleConnectionTimeout, ignoreInvalidNamedRouting, listenerContext, listenerSocketOptions, maxConcurrentRequests, maxInMemoryEntity, maxPayloadSize, maxTcpConnections, mediaContext, name, port, protocols, receiveBufferSize, requestedUriDiscoveryContext, restoreResponseHeaders, routing, routings, shutdownGracePeriod, smartAsyncWrites, tls, writeBufferSize, writeQueueLengthMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.webserver.ListenerConfigaddress, backlog, concurrencyLimit, connectionConfig, connectionOptions, connectionSelectors, contentEncoding, directHandlers, enableProxyProtocol, errorHandling, host, idleConnectionPeriod, idleConnectionTimeout, ignoreInvalidNamedRouting, listenerContext, listenerSocketOptions, maxConcurrentRequests, maxInMemoryEntity, maxPayloadSize, maxTcpConnections, mediaContext, name, port, protocols, receiveBufferSize, requestedUriDiscoveryContext, restoreResponseHeaders, routing, routings, shutdownGracePeriod, smartAsyncWrites, tls, writeBufferSize, writeQueueLength
- 
Constructor Details- 
WebServerConfigImplCreate an instance providing a builder.- Parameters:
- builder- extending builder base of this prototype
 
 
- 
- 
Method Details- 
buildDescription copied from interface:Prototype.FactoryCreate a new instance of the runtime type from this config object.- Specified by:
- buildin interface- Prototype.Factory<WebServer>
- Returns:
- new configured runtime instance
 
- 
get
- 
shutdownHookpublic boolean shutdownHook()Description copied from interface:WebServerConfigWhen true the webserver registers a shutdown hook with the JVM Runtime.Defaults to true. Set this to false such that a shutdown hook is not registered. - Specified by:
- shutdownHookin interface- WebServerConfig
- Returns:
- whether to register a shutdown hook
 
- 
socketsDescription copied from interface:WebServerConfigSocket configurations. Note that socket named "@default" cannot be used, configure the values on the server directly.- Specified by:
- socketsin interface- WebServerConfig
- Returns:
- map of listener configurations, except for the default one
 
- 
namedRoutingsDescription copied from interface:WebServerConfigRouting for additional sockets. Note that socket named "@default" cannot be used, configure the routing on the server directly.- Specified by:
- namedRoutingsin interface- WebServerConfig
- Returns:
- map of routing
 
- 
featuresDescription copied from interface:WebServerConfigServer features allow customization of the server, listeners, or routings.- Specified by:
- featuresin interface- WebServerConfig
- Returns:
- server features
 
- 
serverContextDescription copied from interface:WebServerConfigContext for the WebServer, if none defined, a new one will be created with global context as the root.- Specified by:
- serverContextin interface- WebServerConfig
- Returns:
- server context
 
- 
toString- Overrides:
- toStringin class- ListenerConfig.BuilderBase.ListenerConfigImpl
 
- 
equals- Overrides:
- equalsin class- ListenerConfig.BuilderBase.ListenerConfigImpl
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- ListenerConfig.BuilderBase.ListenerConfigImpl
 
- 
configureSocketUpdate the server socket with configured socket options.- Parameters:
- socket- socket to update
 
 
-