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 Summary
Nested classes/interfaces inherited from interface io.helidon.webserver.ListenerConfig
ListenerConfig.Builder, ListenerConfig.BuilderBase<BUILDER extends ListenerConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ListenerConfig> Nested classes/interfaces inherited from interface io.helidon.webserver.WebServerConfig
WebServerConfig.Builder, WebServerConfig.BuilderBase<BUILDER extends WebServerConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends WebServerConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWebServerConfigImpl(WebServerConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier 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.ListenerConfigImpl
address, 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.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.webserver.ListenerConfig
address, 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
-
WebServerConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Description copied from interface:Prototype.FactoryCreate a new instance of the runtime type from this config object.- Specified by:
buildin interfacePrototype.Factory<WebServer>- Returns:
- new configured runtime instance
-
get
-
shutdownHook
public 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 interfaceWebServerConfig- Returns:
- whether to register a shutdown hook
-
sockets
Description copied from interface:WebServerConfigSocket configurations. Note that socket named "@default" cannot be used, configure the values on the server directly.- Specified by:
socketsin interfaceWebServerConfig- Returns:
- map of listener configurations, except for the default one
-
namedRoutings
Description 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 interfaceWebServerConfig- Returns:
- map of routing
-
features
Description copied from interface:WebServerConfigServer features allow customization of the server, listeners, or routings.- Specified by:
featuresin interfaceWebServerConfig- Returns:
- server features
-
serverContext
Description 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 interfaceWebServerConfig- Returns:
- server context
-
toString
- Overrides:
toStringin classListenerConfig.BuilderBase.ListenerConfigImpl
-
equals
- Overrides:
equalsin classListenerConfig.BuilderBase.ListenerConfigImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classListenerConfig.BuilderBase.ListenerConfigImpl
-
configureSocket
Update the server socket with configured socket options.- Parameters:
socket- socket to update
-