public final class UriUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getNonEmptyPath(MutableUri uri)
Returns / when the given
uri has no path component, returns the uri path otherwise. |
static boolean |
isSecure(String uri)
Returns
true if the given URI scheme is for a secure (TLS) connection. |
public static boolean isSecure(String uri)
true
if the given URI scheme is for a secure (TLS) connection.uri
- rebased request URItrue
if the given URI scheme is for a secure (TLS) connection.public static String getNonEmptyPath(MutableUri uri)
uri
has no path component, returns the uri path otherwise.
Convenient for HTTP layer when targeting server root
uri
- request's uriCopyright 2011-2017 ForgeRock AS.