Package ai.preferred.venom.utils
Class UrlUtil
- java.lang.Object
-
- ai.preferred.venom.utils.UrlUtil
-
public final class UrlUtil extends java.lang.Object
A utility for managing URLs.- Author:
- Ween Jiann Lee
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getBaseUrl(Request request)
Get base url from a request.
-
-
-
Method Detail
-
getBaseUrl
public static java.lang.String getBaseUrl(Request request) throws java.net.URISyntaxException
Get base url from a request.- Parameters:
request
- an instance of request- Returns:
- base URL string
- Throws:
java.net.URISyntaxException
- if not a proper URL
-
-