java.lang.Object
io.helidon.http.RequestedUriDiscoveryContext.Builder
- All Implemented Interfaces:
Builder<RequestedUriDiscoveryContext.Builder,
,RequestedUriDiscoveryContext> Supplier<RequestedUriDiscoveryContext>
- Enclosing interface:
RequestedUriDiscoveryContext
public static final class RequestedUriDiscoveryContext.Builder
extends Object
implements Builder<RequestedUriDiscoveryContext.Builder,RequestedUriDiscoveryContext>
Builder for
RequestedUriDiscoveryContext
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Config 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()
Build the instance from this builder.Update the settings from the "requested-uri-discovery"Config
node 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
(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.
-
Field Details
-
REQUESTED_URI_DISCOVERY_CONFIG_KEY
Config key prefix for requested URI discovery settings.- See Also:
-
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<RequestedUriDiscoveryContext.Builder,
RequestedUriDiscoveryContext> - Returns:
- instance of the built type
-
config
Update the settings from the "requested-uri-discovery"Config
node 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
Sets the trusted proxies for requested URI discovery for requests arriving on the socket.- Parameters:
trustedProxies
- theAllowList
represented 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.RequestedUriDiscoveryType
to 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