public interface ContainerResourceLocator extends ExternalResourceLocator
Modifier and Type | Method and Description |
---|---|
URI |
getBaseURI()
Get the base URI for the locator instance.
|
InputStream |
getResource(String configName,
String defaultUri)
Get the resource specified by the container 'config' value.
|
getResource
InputStream getResource(String configName, String defaultUri) throws IllegalArgumentException, IOException
configName
- The container configuration entry name whose value specifies
the location of the resource.defaultUri
- The default location for the resource.IllegalArgumentException
- Illegal argument. Check the cause exception for more
information.IOException
- Unable to get the resource stream.URI getBaseURI()
Copyright © 2020. All rights reserved.