public interface BundlableNode
extends org.bladerunnerjs.model.engine.Node, org.bladerunnerjs.model.AssetContainer
Modifier and Type | Method and Description |
---|---|
java.util.List<Asset> |
assets(Asset asset,
java.util.List<java.lang.String> requirePaths)
|
BundleSet |
getBundleSet()
The method retrieves the
BundleSet corresponding to the current BundableNode for when it is necessary to deploy it. |
LinkedAsset |
getLinkedAsset(java.lang.String requirePath)
The method retrieves the resource specified by the require path.
|
ResponseContent |
handleLogicalRequest(java.lang.String logicalRequestPath,
BundleSet bundleSet,
org.bladerunnerjs.model.UrlContentAccessor contentAccessor,
java.lang.String version)
Handle a given request using the
BundleSet provided. |
ResponseContent |
handleLogicalRequest(java.lang.String logicalRequestPath,
org.bladerunnerjs.model.UrlContentAccessor contentAccessor,
java.lang.String version)
The method represents a bundle request and will deliver the response in the form of bundled resources.
|
java.util.List<LinkedAsset> |
seedAssets()
The method retrieves the a List of
LinkedAsset that are located within the current BundableNode. |
app, asset, assets, canonicaliseRequirePath, isNamespaceEnforced, requirePrefix, scopeAssetContainers
addTemplateTransformations, getTemplateName, populate
addObserver, addObserver, containsFile, create, delete, dir, dirExists, discoverAllChildren, exists, file, getObservers, getTypeName, incrementChildFileVersions, incrementFileVersion, memoizedScopeFiles, nodeProperties, notifyObservers, parentNode, ready, storageDir, storageFile
LinkedAsset getLinkedAsset(java.lang.String requirePath) throws RequirePathException
requirePath
- the require path from which the resource will be retrievedRequirePathException
- if the require path is invalid or the resource is out of scopejava.util.List<LinkedAsset> seedAssets()
LinkedAsset
that are located within the current BundableNode.BundleSet getBundleSet() throws ModelOperationException
BundleSet
corresponding to the current BundableNode for when it is necessary to deploy it.ModelOperationException
- if any exceptions are thrown when retrieving the BundleSetResponseContent handleLogicalRequest(java.lang.String logicalRequestPath, org.bladerunnerjs.model.UrlContentAccessor contentAccessor, java.lang.String version) throws MalformedRequestException, ResourceNotFoundException, ContentProcessingException
logicalRequestPath
- the path the request is being made forcontentAccessor
- the output stream the content will be written toversion
- the version of the bundle being retrievedMalformedRequestException
- if the request does not adhere to the expected formatResourceNotFoundException
- if the request may not be handled due to the indicated resource not being foundContentProcessingException
- for non-BRJS-specific issuesResponseContent handleLogicalRequest(java.lang.String logicalRequestPath, BundleSet bundleSet, org.bladerunnerjs.model.UrlContentAccessor contentAccessor, java.lang.String version) throws MalformedRequestException, ResourceNotFoundException, ContentProcessingException
BundleSet
provided.
See #handleLogicalRequest(String logicalRequestPath, UrlContentAccessor contentAccessor, String version) throws MalformedRequestException, ResourceNotFoundException, ContentProcessingException;logicalRequestPath
- the path the request is being made forbundleSet
- handle the request using the provided BundleSetcontentAccessor
- the output stream the content will be written toversion
- the version of the bundle being retrievedMalformedRequestException
- if the request does not adhere to the expected formatResourceNotFoundException
- if the request may not be handled due to the indicated resource not being foundContentProcessingException
- for non-BRJS-specific issuesjava.util.List<Asset> assets(Asset asset, java.util.List<java.lang.String> requirePaths) throws RequirePathException
Asset
s that are required by the parameter Asset
through the contained
require paths.asset
- the Asset object whose required Assets will be retrievedrequirePaths
- the require paths to be resolvedRequirePathException
- if the require path is invalid or ambiguous, out of scope, or may otherwise not be resolvable