Interface RequestedUriDiscoveryContext
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 RequestedUriDiscoveryContextCreates a newRequestedUriDiscoveryContextfrom the provided discovery context config node.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
Creates a newRequestedUriDiscoveryContextfrom the provided discovery context config node.- Parameters:
config- node for the discovery context- Returns:
- new discovery context instance
-
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- 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
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
-