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

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

      @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 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 - decoded 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
    • uriInfo

      UriInfo uriInfo(SocketAddress remoteAddress, SocketAddress 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
    • uriInfo

      default UriInfo uriInfo(SocketAddress remoteAddress, SocketAddress localAddress, String requestPath, String requestScheme, ServerRequestHeaders headers, UriQuery query, boolean isSecure)
      Creates a UriInfo object 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 request
      localAddress - local address from the request
      requestPath - decoded path from the request
      requestScheme - scheme from the request target
      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