Package io.micronaut.http.context
Class ContextPathUtils
java.lang.Object
io.micronaut.http.context.ContextPathUtils
Utility class to work with context paths and URIs.
- Since:
- 4.0.0
- Author:
- Sergio del Amo
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull URIprepend(@NonNull URI requestURI, @Nullable ClientContextPathProvider clientContextPathProvider) static @NonNull URIprepend(@NonNull URI requestURI, @Nullable ServerContextPathProvider serverContextPathProvider) static @NonNull URI
-
Method Details
-
prepend
public static @NonNull URI prepend(@NonNull URI requestURI, @Nullable ServerContextPathProvider serverContextPathProvider) throws URISyntaxException - Throws:
URISyntaxException
-
prepend
public static @NonNull URI prepend(@NonNull URI requestURI, @Nullable ClientContextPathProvider clientContextPathProvider) throws URISyntaxException - Throws:
URISyntaxException
-
prepend
public static @NonNull URI prepend(@NonNull URI requestURI, @Nullable String contextPath) throws URISyntaxException - Throws:
URISyntaxException
-