Package io.micronaut.security.config
Class ServerContextPathProviderUtils
- java.lang.Object
-
- io.micronaut.security.config.ServerContextPathProviderUtils
-
@Internal public final class ServerContextPathProviderUtils extends java.lang.ObjectUtility methods to prepend a URL with the context path provided viaServerContextPathProvider.- Since:
- 3.7.1
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringprependContextPath(java.lang.String url, io.micronaut.http.context.ServerContextPathProvider serverContextPathProvider)
-
-
-
Method Detail
-
prependContextPath
@NonNull public static java.lang.String prependContextPath(@NonNull java.lang.String url, @NonNull io.micronaut.http.context.ServerContextPathProvider serverContextPathProvider)- Parameters:
url- The url to be prefixed by the context pathserverContextPathProvider- context path provider- Returns:
- the url prepended with the context path. For url /bar and context path foo the method returns /foo/bar
-
-