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(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 . |
public List<URL> getApplicationResources(VaadinContext context, String path) throws IOException
ResourceProvider
path
using the provided context
.getApplicationResources
in interface ResourceProvider
context
- a context objectpath
- the resource pathIOException
- if there is an I/O errorpublic URL getApplicationResource(VaadinContext context, String path)
ResourceProvider
path
using
the provided context
.getApplicationResource
in interface ResourceProvider
context
- a context objectpath
- the resource pathnull
public 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 © 2000–2021 Vaadin Ltd. All rights reserved.