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)
ResourceProvider
path
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 ResourceProvider
path
- the resource pathnull
public List<URL> getApplicationResources(String path) throws IOException
ResourceProvider
path
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 ResourceProvider
path
- the resource pathIOException
- if there is an I/O errorpublic URL getClientResource(String path)
ResourceProvider
path
.getClientResource
in interface ResourceProvider
path
- the resource pathnull
public InputStream getClientResourceAsStream(String path) throws IOException
ResourceProvider
path
.getClientResourceAsStream
in interface ResourceProvider
path
- the resource pathnull
IOException
- If there is an I/O error.Copyright © 2021. All rights reserved.