Package io.quarkus.vertx.http.deployment
Class HttpRootPathBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.SimpleBuildItem
io.quarkus.vertx.http.deployment.HttpRootPathBuildItem
public final class HttpRootPathBuildItem
extends io.quarkus.builder.item.SimpleBuildItem
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn normalized Http root path configured from quarkus.http.root-path.relativePath(String path) Resolve path that is always relative into an absolute path.resolvePath(String path) Resolve path into an absolute path.
-
Constructor Details
-
HttpRootPathBuildItem
-
-
Method Details
-
getRootPath
Return normalized Http root path configured from quarkus.http.root-path. This path will always end in a slash.Use
resolvePath(String)if you need to construct a Uri from the Http root path.- Returns:
- Normalized Http root path ending with a slash
- See Also:
-
resolvePath
Resolve path into an absolute path. If path is relative, it will be resolved against `quarkus.http.root-path`. An absolute path will be normalized and returned.Given quarkus.http.root-path=/
resolvePath("foo")will return /fooresolvePath("/foo")will return /fooresolvePath("/")will return /
resolvePath("foo")will return /app/fooresolvePath("/foo")will return /fooresolvePath("/")will return /
The returned path will not end with a slash.
- Parameters:
path- Path to be resolved to an absolute path.- Returns:
- An absolute path not ending with a slash
- See Also:
-
relativePath
Resolve path that is always relative into an absolute path. Whether the path is relative or absolute, it will be resolved against `quarkus.http.root-path`, by removing the '/' in the latter case.Given quarkus.http.root-path=/
relativePath("foo")will return /foorelativePath("/foo")will return /foo
relativePath("foo")will return /app/foorelativePath("/foo")will return /app/foo
The returned path will not end with a slash.
- Parameters:
path- Path to be resolved to an absolute path.- Returns:
- An absolute path not ending with a slash
- See Also:
-
routeBuilder
-