public final class HttpRootPathBuildItem
extends io.quarkus.builder.item.SimpleBuildItem
| Constructor and Description |
|---|
HttpRootPathBuildItem(String rootPath) |
| Modifier and Type | Method and Description |
|---|---|
String |
adjustPath(String path)
Deprecated.
Use
resolvePath instead. Do not use this method. Will be removed in Quarkus 2.0 |
String |
getRootPath()
Return normalized Http root path configured from quarkus.http.root-path.
|
String |
resolvePath(String path)
Resolve path into an absolute path.
|
public HttpRootPathBuildItem(String rootPath)
public String getRootPath()
Use resolvePath(String) if you need to construct a Uri from the Http root path.
resolvePath(String)public String adjustPath(String path)
resolvePath instead. Do not use this method. Will be removed in Quarkus 2.0public String resolvePath(String path)
Given quarkus.http.root-path=/
resolvePath("foo") will return /fooresolvePath("/foo") will return /fooresolvePath("foo") will return /app/fooresolvePath("/foo") will return /fooThe returned path will not end with a slash.
path - Path to be resolved to an absolute path.UriNormalizationUtil.normalizeWithBase(URI, String, boolean)Copyright © 2021 JBoss by Red Hat. All rights reserved.