public class RepositoryResourceBundleData extends AbstractResourceData implements ResourceBundleData
CONTENT_LENGTH, CONTENT_TYPE, FILENAME
Constructor and Description |
---|
RepositoryResourceBundleData(ResourceKey bundleKey,
Repository repository,
ResourceKey mainKey,
boolean failOnMissingData)
Creates a new RepositoryResourceBundleData object.
|
Modifier and Type | Method and Description |
---|---|
ResourceBundleData |
deriveData(ResourceKey key) |
ResourceManager |
deriveManager(ResourceManager parent) |
Object |
getAttribute(String key) |
ResourceKey |
getBundleKey() |
ResourceKey |
getKey() |
Repository |
getRepository() |
InputStream |
getResourceAsStream(ResourceManager caller) |
long |
getVersion(ResourceManager caller) |
getLength, getResource, getResource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLength, getResource, getResource
public RepositoryResourceBundleData(ResourceKey bundleKey, Repository repository, ResourceKey mainKey, boolean failOnMissingData) throws ResourceLoadingException
bundleKey
- points to the physical location of the document bundle.repository
- the repository object loaded from the bundle-key.mainKey
- the bundles main entry.failOnMissingData
- a flag indicating whether to fail on missing entries.ResourceLoadingException
public Repository getRepository()
public ResourceBundleData deriveData(ResourceKey key) throws ResourceLoadingException
deriveData
in interface ResourceBundleData
ResourceLoadingException
public InputStream getResourceAsStream(ResourceManager caller) throws ResourceLoadingException
getResourceAsStream
in interface ResourceData
ResourceLoadingException
public ResourceKey getBundleKey()
getBundleKey
in interface ResourceBundleData
public Object getAttribute(String key)
getAttribute
in interface ResourceData
public ResourceKey getKey()
getKey
in interface ResourceData
public long getVersion(ResourceManager caller) throws ResourceLoadingException
getVersion
in interface ResourceData
ResourceLoadingException
public ResourceManager deriveManager(ResourceManager parent) throws ResourceLoadingException
deriveManager
in interface ResourceBundleData
ResourceLoadingException
Copyright © 2018 Hitachi Vantara. All rights reserved.