Package io.trino.server
Class ExternalUriInfo
java.lang.Object
io.trino.server.ExternalUriInfo
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.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabsolutePath(String path) Returns an external URI to the specified path prefixed with forwarded path prefix, and no query parameters.Returns an external URI builder with the forwarded path prefix and no query parameters.static ExternalUriInfofrom(jakarta.ws.rs.container.ContainerRequestContext requestContext) Returns the full request URI with the forwarded path prefix, and all query parameters.
-
Constructor Details
-
ExternalUriInfo
public ExternalUriInfo(@Context jakarta.ws.rs.core.UriInfo uriInfo, @HeaderParam("X-Forwarded-Prefix") String forwardedPrefix)
-
-
Method Details
-
from
-
baseUriBuilder
Returns an external URI builder with the forwarded path prefix and no query parameters. -
absolutePath
-
fullRequestUri
Returns the full request URI with the forwarded path prefix, and all query parameters.
-