Module io.helidon.webserver
Package io.helidon.webserver.http1
Class Http1ConnectionSelectorConfig.BuilderBase<BUILDER extends Http1ConnectionSelectorConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Http1ConnectionSelectorConfig>
java.lang.Object
io.helidon.webserver.http1.Http1ConnectionSelectorConfig.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER
- type of the builder extending this abstract builderPROTOTYPE
- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,
PROTOTYPE>
- Direct Known Subclasses:
Http1ConnectionSelectorConfig.Builder
- Enclosing interface:
Http1ConnectionSelectorConfig
public abstract static class Http1ConnectionSelectorConfig.BuilderBase<BUILDER extends Http1ConnectionSelectorConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Http1ConnectionSelectorConfig>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
Http1ConnectionSelector
.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddUpgrader
(Http1Upgrader upgrader) Add a new upgrader, replacing an existing one for the same protocol.addUpgraders
(Map<? extends String, ? extends Http1Upgrader> upgraders) This method keeps existing values, then puts all new values into the map.config()
HTTP/1 protocol configuration to use for this connection selector.config
(Http1Config config) HTTP/1 protocol configuration to use for this connection selector.config
(Consumer<Http1Config.Builder> consumer) HTTP/1 protocol configuration to use for this connection selector.config
(Supplier<? extends Http1Config> supplier) HTTP/1 protocol configuration to use for this connection selector.from
(Http1ConnectionSelectorConfig prototype) Update this builder from an existing prototype instance.from
(Http1ConnectionSelectorConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected void
Handles providers and decorators.putUpgrader
(String key, Http1Upgrader upgrader) This method adds a new value to the map, or replaces it if the key already exists.toString()
Upgraders to support upgrading from HTTP/1.1 to a different protocol (such aswebsocket
).upgraders
(Map<? extends String, ? extends Http1Upgrader> upgraders) This method replaces all values with the new ones.protected void
Validates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype
- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder
- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
addUpgrader
Add a new upgrader, replacing an existing one for the same protocol.- Parameters:
upgrader
- upgrader to add- Returns:
- updated builder instance
-
upgraders
This method replaces all values with the new ones.- Parameters:
upgraders
- map of protocol name to upgrader- Returns:
- updated builder instance
- See Also:
-
addUpgraders
This method keeps existing values, then puts all new values into the map.- Parameters:
upgraders
- map of protocol name to upgrader- Returns:
- updated builder instance
- See Also:
-
putUpgrader
This method adds a new value to the map, or replaces it if the key already exists.- Parameters:
key
- key to add or replaceupgrader
- new value for the key- Returns:
- updated builder instance
- See Also:
-
config
HTTP/1 protocol configuration to use for this connection selector.- Parameters:
config
- HTTP/1 protocol configuration- Returns:
- updated builder instance
- See Also:
-
config
HTTP/1 protocol configuration to use for this connection selector.- Parameters:
consumer
- consumer of builder for HTTP/1 protocol configuration- Returns:
- updated builder instance
- See Also:
-
config
HTTP/1 protocol configuration to use for this connection selector.- Parameters:
supplier
- supplier of HTTP/1 protocol configuration- Returns:
- updated builder instance
- See Also:
-
upgraders
Upgraders to support upgrading from HTTP/1.1 to a different protocol (such aswebsocket
).- Returns:
- the upgraders
-
config
HTTP/1 protocol configuration to use for this connection selector.- Returns:
- the config
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-