@groovy.transform.CompileStatic @Deprecated class UriUtils extends Object
Dealing with URIs
Constructor and description |
---|
UriUtils
() |
Type Params | Return Type | Name and description |
---|---|---|
|
static String |
getPkgName(URI uri) Get final package or directory name from a URI |
|
static String |
hashURI(URI uri) Creates a SHA-256 has of a URI. |
|
static URI |
safeUri(URI uri) Create a URI where the user/password is masked out. |
|
static URI |
urize(Object uriThingy) Attempts to convert object to a URI. |
Get final package or directory name from a URI
Creates a SHA-256 has of a URI.
uri
- URI to hashCreate a URI where the user/password is masked out.
uri
- Original URIAttempts to convert object to a URI. Closures can be passed and will be evaluated. Result will then be converted to a URI.
uriThingy
- Anything that could be converted to a URI