| Constructor and Description |
|---|
ResourceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getParentName(Resource resource)
Gets the parent name of a resource.
|
static Resource |
toResource(ResourceProperties resourceProperties)
Creates a Resource based on the
ResourceProperties definition. |
static Resource |
toResource(String uri)
Creates a Resource based on a path or URI (represented by a String)
|
static Resource |
toResource(URI uri)
Creates a Resource based on a URI
|
public static Resource toResource(URI uri) throws UnsupportedResourcePropertiesException
uri - UnsupportedResourcePropertiesException - if the scheme or other part of the URI is unsupported.public static Resource toResource(String uri) throws UnsupportedResourcePropertiesException
uri - UnsupportedResourcePropertiesException - if the scheme or other part of the string is unsupported.public static Resource toResource(ResourceProperties resourceProperties) throws UnsupportedResourcePropertiesException
ResourceProperties definition.resourceProperties - UnsupportedResourcePropertiesException - if the provided properties cannot be handled in creation of a
resource.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.