public class ResourceTypeHelper
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
ResourceTypeHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getResourceID(java.net.URL url)
Parsing the ResourceID out of the URL.
|
static java.lang.String |
getResourceType(java.net.URL url)
Parsing the ResourceType out of the URL.
|
static java.lang.String[] |
getResourceTypes()
Used by the InputFieldHint annotation for type-ahead.
|
public static java.lang.String[] getResourceTypes()
public static java.lang.String getResourceType(java.net.URL url)
Odd number of uri fragments, it's the last one, even number of uri fragments it's the penultimate one.
url - the URL endpointCosmosAuthorizationHeaderFromUrlpublic static java.lang.String getResourceID(java.net.URL url)
odd number of uri fragments, then it's everything but the last one; even number of uri fragments it's all of them.
url - the URL endpointCosmosAuthorizationHeaderFromUrl