java.lang.Object
io.helidon.http.RequestedUriDiscoveryContext.Builder
- All Implemented Interfaces:
io.helidon.common.Builder<RequestedUriDiscoveryContext.Builder,,RequestedUriDiscoveryContext> Supplier<RequestedUriDiscoveryContext>
- Enclosing interface:
RequestedUriDiscoveryContext
public static final class RequestedUriDiscoveryContext.Builder
extends Object
implements io.helidon.common.Builder<RequestedUriDiscoveryContext.Builder,RequestedUriDiscoveryContext>
Builder for
RequestedUriDiscoveryContext.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConfig key prefix for requested URI discovery settings. -
Method Summary
Modifier and TypeMethodDescriptionAdds a discovery type for requested URI discovery for requests arriving on the socket.build()config(io.helidon.common.config.Config requestedUriDiscoveryConfig) Update the settings from the "requested-uri-discovery"Confignode within the socket configuration.discoveryTypes(List<RequestedUriDiscoveryContext.RequestedUriDiscoveryType> discoveryTypes) Deprecated, for removal: This API element is subject to removal in a future version.enabled(boolean value) Sets whether requested URI discovery is enabled for requestes arriving on the socket.Sets the socket identifier to which the discovery context applies.trustedProxies(io.helidon.common.configurable.AllowList trustedProxies) Sets the trusted proxies for requested URI discovery for requests arriving on the socket.types(List<RequestedUriDiscoveryContext.RequestedUriDiscoveryType> discoveryTypes) Sets the discovery types for requested URI discovery for requests arriving on the socket.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.common.Builder
get, identity, update
-
Field Details
-
REQUESTED_URI_DISCOVERY_CONFIG_KEY
Config key prefix for requested URI discovery settings.- See Also:
-
-
Method Details
-
build
- Specified by:
buildin interfaceio.helidon.common.Builder<RequestedUriDiscoveryContext.Builder,RequestedUriDiscoveryContext>
-
config
public RequestedUriDiscoveryContext.Builder config(io.helidon.common.config.Config requestedUriDiscoveryConfig) Update the settings from the "requested-uri-discovery"Confignode within the socket configuration.- Parameters:
requestedUriDiscoveryConfig- requested URI discovery configuration node- Returns:
- updated builder instance
-
enabled
Sets whether requested URI discovery is enabled for requestes arriving on the socket.- Parameters:
value- new enabled state- Returns:
- updated builder
-
trustedProxies
public RequestedUriDiscoveryContext.Builder trustedProxies(io.helidon.common.configurable.AllowList trustedProxies) Sets the trusted proxies for requested URI discovery for requests arriving on the socket.- Parameters:
trustedProxies- theAllowListrepresented trusted proxies- Returns:
- updated builder
-
types
public RequestedUriDiscoveryContext.Builder types(List<RequestedUriDiscoveryContext.RequestedUriDiscoveryType> discoveryTypes) Sets the discovery types for requested URI discovery for requests arriving on the socket.- Parameters:
discoveryTypes- discovery types to use- Returns:
- updated builder
-
discoveryTypes
@Deprecated(since="4.0.6", forRemoval=true) public RequestedUriDiscoveryContext.Builder discoveryTypes(List<RequestedUriDiscoveryContext.RequestedUriDiscoveryType> discoveryTypes) Deprecated, for removal: This API element is subject to removal in a future version.Usetypes(java.util.List)insteadSets the discovery types for requested URI discovery for requests arriving on the socket.- Parameters:
discoveryTypes- discovery types to use- Returns:
- updated builder
-
addDiscoveryType
public RequestedUriDiscoveryContext.Builder addDiscoveryType(RequestedUriDiscoveryContext.RequestedUriDiscoveryType discoveryType) Adds a discovery type for requested URI discovery for requests arriving on the socket.- Parameters:
discoveryType- theRequestedUriDiscoveryContext.RequestedUriDiscoveryTypeto add- Returns:
- updated builder
-
socketId
Sets the socket identifier to which the discovery context applies.- Parameters:
socketId- socket identifier (used in logging)- Returns:
- updated builder
-
types(java.util.List)instead