public interface ResourceProvider
This is SPI to access resources available at runtime. Depending on the web container this can be an application classpath only or bundles which are identified by the provided context.
Modifier and Type | Method and Description |
---|---|
URL |
getApplicationResource(VaadinContext context,
String path)
Gets the web application resource identified by the
path using
the provided context . |
List<URL> |
getApplicationResources(VaadinContext context,
String path)
Gets all the web application resources identified by the
path
using the provided context . |
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 . |
List<URL> getApplicationResources(VaadinContext context, String path) throws IOException
path
using the provided context
.context
- a context objectpath
- the resource pathIOException
- if there is an I/O errorURL getApplicationResource(VaadinContext context, String path)
path
using
the provided context
.context
- a context objectpath
- the resource pathnull
URL getClientResource(String path)
path
.path
- the resource pathnull
InputStream getClientResourceAsStream(String path) throws IOException
path
.path
- the resource pathnull
IOException
- If there is an I/O error.Copyright © 2023. All rights reserved.