-
- All Implemented Interfaces:
public interface PublicationAssetRepresents a digital medium (e.g. a file) offering access to a publication.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPublicationAsset.Dependencies
-
Method Summary
Modifier and Type Method Description abstract MediaTypemediaType()Media type of the asset. abstract Try<Fetcher, Publication.OpeningException>createFetcher(PublicationAsset.Dependencies dependencies, String credentials)Creates a fetcher used to access the asset's content. abstract StringgetName()Name of the asset, e.g. -
-
Method Detail
-
mediaType
abstract MediaType mediaType()
Media type of the asset.
If unknown, fallback on
MediaType.BINARY.
-
createFetcher
abstract Try<Fetcher, Publication.OpeningException> createFetcher(PublicationAsset.Dependencies dependencies, String credentials)
Creates a fetcher used to access the asset's content.
-
-
-
-