public interface RequestedUriDiscoveryContext
Requested URI discovery settings for a socket.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
Builder forRequestedUriDiscoveryContext
.static enum
Types of discovery of frontend URI.static class
Indicates 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 aRequestedUriDiscoveryContext
using the provide discovery context config node.static RequestedUriDiscoveryContext
Creates a newRequestedUriDiscoveryContext
from the provided discovery context config node.uriInfo
(String remoteAddress, String localAddress, String requestPath, ServerRequestHeaders headers, UriQuery query, boolean isSecure) Creates aUriInfo
object for a request based on the discovery settings in theRequestedUriDiscoveryContext
and the specified request-related information.
-
Method Details
-
builder
Creates a new builder for aRequestedUriDiscoveryContext
.- Returns:
- new builder
-
builder
Creates a new builder for aRequestedUriDiscoveryContext
using the provide discovery context config node.- Parameters:
config
- discovery context config node- Returns:
- new builder
-
create
Creates a newRequestedUriDiscoveryContext
from the provided discovery context config node.- Parameters:
config
- node for the discovery context- Returns:
- new discovery context instance
-
uriInfo
UriInfo uriInfo(String remoteAddress, String localAddress, String requestPath, ServerRequestHeaders headers, UriQuery query, boolean isSecure) Creates aUriInfo
object for a request based on the discovery settings in theRequestedUriDiscoveryContext
and 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:
UriInfo
which reconstructs, as well as possible, the requested URI from the originating client
-