Class ExternalUriInfo

java.lang.Object
io.trino.server.ExternalUriInfo

public class ExternalUriInfo extends Object
Provides external URI information for the current request. The external URI may have a path prefix when behind a reverse proxy. The path prefix is extracted from the X-Forwarded-Prefix header.
  • Constructor Details

    • ExternalUriInfo

      public ExternalUriInfo(@Context jakarta.ws.rs.core.UriInfo uriInfo, @HeaderParam("X-Forwarded-Prefix") String forwardedPrefix)
  • Method Details

    • from

      public static ExternalUriInfo from(jakarta.ws.rs.container.ContainerRequestContext requestContext)
    • baseUriBuilder

      public ExternalUriInfo.ExternalUriBuilder baseUriBuilder()
      Returns an external URI builder with the forwarded path prefix and no query parameters.
    • absolutePath

      public URI absolutePath(String path)
      Returns an external URI to the specified path prefixed with forwarded path prefix, and no query parameters.
    • fullRequestUri

      public URI fullRequestUri()
      Returns the full request URI with the forwarded path prefix, and all query parameters.