public interface RequestedUriDiscoveryContext
Requested URI discovery settings for a socket.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classBuilder forRequestedUriDiscoveryContext.static enumTypes of discovery of frontend URI.static classIndicates unsafe settings for a socket's request URI discovery. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder for aRequestedUriDiscoveryContext.Creates a new builder for aRequestedUriDiscoveryContextusing the provide discovery context config node.static RequestedUriDiscoveryContextDeprecated, for removal: This API element is subject to removal in a future version.static RequestedUriDiscoveryContextCreates a newRequestedUriDiscoveryContextfrom the provided discovery context config node.default UriInfouriInfo(String remoteAddress, String localAddress, String requestPath, ServerRequestHeaders headers, UriQuery query, boolean isSecure) Deprecated, for removal: This API element is subject to removal in a future version.uriInfo(SocketAddress remoteAddress, SocketAddress localAddress, String requestPath, ServerRequestHeaders headers, UriQuery query, boolean isSecure) Creates aUriInfoobject for a request based on the discovery settings in theRequestedUriDiscoveryContextand the specified request-related information.default UriInfouriInfo(SocketAddress remoteAddress, SocketAddress localAddress, String requestPath, String requestScheme, ServerRequestHeaders headers, UriQuery query, boolean isSecure) Creates aUriInfoobject for a request with an explicit request-target scheme based on the discovery settings and the specified request-related information.
-
Method Details
-
builder
Creates a new builder for aRequestedUriDiscoveryContext.- Returns:
- new builder
-
builder
Creates a new builder for aRequestedUriDiscoveryContextusing the provide discovery context config node.- Parameters:
config- discovery context config node- Returns:
- new builder
-
create
@Deprecated(since="4.4.0", forRemoval=true) static RequestedUriDiscoveryContext create(Config config) Deprecated, for removal: This API element is subject to removal in a future version.usecreate(io.helidon.config.Config)insteadCreates a newRequestedUriDiscoveryContextfrom the provided discovery context config node.- Parameters:
config- node for the discovery context- Returns:
- new discovery context instance
-
create
Creates a newRequestedUriDiscoveryContextfrom the provided discovery context config node.- Parameters:
config- node for the discovery context- Returns:
- new discovery context instance
-
uriInfo
@Deprecated(forRemoval=true, since="4.2.1") default UriInfo uriInfo(String remoteAddress, String localAddress, String requestPath, ServerRequestHeaders headers, UriQuery query, boolean isSecure) Deprecated, for removal: This API element is subject to removal in a future version.Creates aUriInfoobject for a request based on the discovery settings in theRequestedUriDiscoveryContextand the specified request-related information.- Parameters:
remoteAddress- remote address from the requestlocalAddress- local address from the requestrequestPath- decoded path from the requestheaders- request headersquery- query information from the requestisSecure- whether the request is secure- Returns:
UriInfowhich reconstructs, as well as possible, the requested URI from the originating client
-
uriInfo
UriInfo uriInfo(SocketAddress remoteAddress, SocketAddress localAddress, String requestPath, ServerRequestHeaders headers, UriQuery query, boolean isSecure) Creates aUriInfoobject for a request based on the discovery settings in theRequestedUriDiscoveryContextand the specified request-related information.- Parameters:
remoteAddress- remote address from the requestlocalAddress- local address from the requestrequestPath- path from the requestheaders- request headersquery- query information from the requestisSecure- whether the request is secure- Returns:
UriInfowhich reconstructs, as well as possible, the requested URI from the originating client
-
uriInfo
default UriInfo uriInfo(SocketAddress remoteAddress, SocketAddress localAddress, String requestPath, String requestScheme, ServerRequestHeaders headers, UriQuery query, boolean isSecure) Creates aUriInfoobject for a request with an explicit request-target scheme based on the discovery settings and the specified request-related information.The default implementation preserves binary compatibility for existing custom implementations by validating the supplied arguments and delegating without the explicit scheme to
uriInfo(SocketAddress, SocketAddress, String, ServerRequestHeaders, UriQuery, boolean). Custom implementations must override this method to use the request-target scheme.- Parameters:
remoteAddress- remote address from the requestlocalAddress- local address from the requestrequestPath- decoded path from the requestrequestScheme- scheme from the request targetheaders- request headersquery- query information from the requestisSecure- whether the request is secure- Returns:
UriInfowhich reconstructs, as well as possible, the requested URI from the originating client
-
create(io.helidon.config.Config)instead