public interface ResourceManager extends IResourceManager
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLocation(java.lang.String name)
Returns the location within the web-applications context where the resource will be available
for download.
|
java.io.InputStream |
getRegisteredContent(java.lang.String name)
Returns the content of the registered resource with the given name.
|
boolean |
isRegistered(java.lang.String name)
Determines whether the resource with the given name has been registered.
|
void |
register(java.lang.String name,
java.io.InputStream inputStream)
Registers a given resource and makes it available for download.
|
boolean |
unregister(java.lang.String name)
Unregisters the resource with the given name.
|
void register(java.lang.String name,
java.io.InputStream inputStream)
getLocation(String).register in interface IResourceManagername - a name that represents the resourceinputStream - a stream to read the content fromboolean unregister(java.lang.String name)
unregister in interface IResourceManagername - the name that represents the resource. Must not be null.true if unregistering the resource was successful, false
otherwise.boolean isRegistered(java.lang.String name)
isRegistered in interface IResourceManagername - filename which identifies the registered resource. The filename must be relative to
a classpath root, e.g. a gif 'my.gif' located within the package 'org.eclipse.rap' is
identified as 'org/eclipse/rap/my.gif'. Must not be null.java.lang.String getLocation(java.lang.String name)
getLocation in interface IResourceManagername - the name which identifies the registered resourcejava.io.InputStream getRegisteredContent(java.lang.String name)
getRegisteredContent in interface IResourceManagername - the name of the resource, must not be nullnull if no such
resource exists
Copyright (c) EclipseSource and others 2002, 2014.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0