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
ConstructorsModifierConstructorDescriptionprotected
WebServerConfigImpl
(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 void
configureSocket
(ServerSocket socket) Update the server socket with configured socket options.boolean
features()
Server features allow customization of the server, listeners, or routings.get()
int
hashCode()
Routing for additional sockets.Context for the WebServer, if none defined, a new one will be created with global context as the root.boolean
When 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, writeQueueLength
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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.Factory
Create a new instance of the runtime type from this config object.- Specified by:
build
in interfacePrototype.Factory<WebServer>
- Returns:
- new configured runtime instance
-
get
-
shutdownHook
public boolean shutdownHook()Description copied from interface:WebServerConfig
When 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:
shutdownHook
in interfaceWebServerConfig
- Returns:
- whether to register a shutdown hook
-
sockets
Description copied from interface:WebServerConfig
Socket configurations. Note that socket named "@default" cannot be used, configure the values on the server directly.- Specified by:
sockets
in interfaceWebServerConfig
- Returns:
- map of listener configurations, except for the default one
-
namedRoutings
Description copied from interface:WebServerConfig
Routing for additional sockets. Note that socket named "@default" cannot be used, configure the routing on the server directly.- Specified by:
namedRoutings
in interfaceWebServerConfig
- Returns:
- map of routing
-
features
Description copied from interface:WebServerConfig
Server features allow customization of the server, listeners, or routings.- Specified by:
features
in interfaceWebServerConfig
- Returns:
- server features
-
serverContext
Description copied from interface:WebServerConfig
Context for the WebServer, if none defined, a new one will be created with global context as the root.- Specified by:
serverContext
in interfaceWebServerConfig
- Returns:
- server context
-
toString
- Overrides:
toString
in classListenerConfig.BuilderBase.ListenerConfigImpl
-
equals
- Overrides:
equals
in classListenerConfig.BuilderBase.ListenerConfigImpl
-
hashCode
public int hashCode()- Overrides:
hashCode
in classListenerConfig.BuilderBase.ListenerConfigImpl
-
configureSocket
Update the server socket with configured socket options.- Parameters:
socket
- socket to update
-