public class NoOpWebResourceMapper extends Object implements WebResourceMapper
| Constructor and Description |
|---|
NoOpWebResourceMapper(Exception reason) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
map(String resourceUrl)
Maps a local resource URL into a CDN-based URL list (a local resource could be mapped into multiple CDN resources).
|
MappingSet |
mappings()
Inspects mappings used by one instance.
|
Optional<String> |
mapSingle(String resourceUrl)
Maps a local resource URL into a CDN-based URL.
|
Optional<Exception> |
reason()
Special attribute used that provides information about why an operational instance if WebResourceMapper was not created.
|
@Nonnull public List<String> map(@Nonnull String resourceUrl)
WebResourceMapperMaps a local resource URL into a CDN-based URL list (a local resource could be mapped into multiple CDN resources).
For instance, it would transform a URL like/jira/my/resource/hash/batch.js into one or more
domain-relative URLs like //my.cdn.com/my/resource/hash/batch.js.map in interface WebResourceMapperresourceUrl - URL of wanted web resource (includes context).@Nonnull public Optional<String> mapSingle(@Nonnull String resourceUrl)
WebResourceMapperMaps a local resource URL into a CDN-based URL.
For instance, it would transform a URL like/jira/my/resource/hash/batch.js into a
domain-relative URL like //my.cdn.com/my/resource/hash/batch.js.mapSingle in interface WebResourceMapperresourceUrl - URL of wanted web resource (includes context).@Nonnull public MappingSet mappings()
WebResourceMappermappings in interface WebResourceMapperCopyright © 2017 Atlassian. All rights reserved.