Interface RequestedUriDiscoveryContext


public interface RequestedUriDiscoveryContext
Requested URI discovery settings for a socket.
  • Method Details

    • builder

      Creates a new builder for a RequestedUriDiscoveryContext.
      Returns:
      new builder
    • builder

      Creates a new builder for a RequestedUriDiscoveryContext using the provide discovery context config node.
      Parameters:
      config - discovery context config node
      Returns:
      new builder
    • create

      static RequestedUriDiscoveryContext create(Config config)
      Creates a new RequestedUriDiscoveryContext 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 a UriInfo object for a request based on the discovery settings in the RequestedUriDiscoveryContext and the specified request-related information.
      Parameters:
      remoteAddress - remote address from the request
      localAddress - local address from the request
      requestPath - path from the request
      headers - request headers
      query - query information from the request
      isSecure - whether the request is secure
      Returns:
      UriInfo which reconstructs, as well as possible, the requested URI from the originating client