protected static class LookupInitializer.ResourceProviderImpl extends Object implements ResourceProvider
ResourceProvider.| Constructor and Description |
|---|
ResourceProviderImpl()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
URL |
getApplicationResource(String path)
Gets the resource identified by
path located in the application
bundle (jar) which may be found using this resource provider instance. |
List<URL> |
getApplicationResources(String path)
Gets all the resources identified by
path located in in the
application bundle (jar) which may be found using this resource provider. |
URL |
getClientResource(String path)
Gets "flow-client" bundle resource identified by the
path. |
InputStream |
getClientResourceAsStream(String path)
Gets "flow-client" bundle resource content identified by the
path. |
public URL getApplicationResource(String path)
ResourceProviderpath located in the application
bundle (jar) which may be found using this resource provider instance.
If the provider doesn't contain any information about application bundle
or there is no resource with the given path then this method returns
null.
getApplicationResource in interface ResourceProviderpath - the resource pathnullpublic List<URL> getApplicationResources(String path) throws IOException
ResourceProviderpath located in in the
application bundle (jar) which may be found using this resource provider.
If the provider doesn't contain any information about application bundle or there is no resource with the given path then this method returns an empty list.
getApplicationResources in interface ResourceProviderpath - the resource pathIOException - if there is an I/O errorpublic URL getClientResource(String path)
ResourceProviderpath.getClientResource in interface ResourceProviderpath - the resource pathnullpublic InputStream getClientResourceAsStream(String path) throws IOException
ResourceProviderpath.getClientResourceAsStream in interface ResourceProviderpath - the resource pathnullIOException - If there is an I/O error.Copyright © 2021. All rights reserved.