Trait

controllers

AssetsMetadata

Related Doc: package controllers

Permalink

trait AssetsMetadata extends AssetsFinder

Retains metadata for assets that can be readily cached.

To get the final path of an asset, you can inject an instance and call finalPath.

Source
Assets.scala
Linear Supertypes
AssetsFinder, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AssetsMetadata
  2. AssetsFinder
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def assetsBasePath: String

    Permalink

    The configured assets path

    The configured assets path

    Definition Classes
    AssetsFinder
  2. abstract def assetsUrlPrefix: String

    Permalink

    The configured assets prefix

    The configured assets prefix

    Definition Classes
    AssetsFinder
  3. abstract def findAssetPath(basePath: String, rawPath: String): String

    Permalink

    Get the final path, unprefixed, for a given base assets directory.

    Get the final path, unprefixed, for a given base assets directory.

    basePath

    the location to look for the assets

    rawPath

    the initial path of the asset

    Definition Classes
    AssetsFinder

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. def path(rawPath: String): String

    Permalink

    Used to obtain the final path of an asset according to assets configuration.

    Used to obtain the final path of an asset according to assets configuration. This returns the minified path, if exists, with a digest if it exists. It is possible to use this in cases where minification and digests are used and where they are not. If no alternative file is found, the original filename is returned.

    This method is like unprefixedPath, but it prepends the prefix defined in configuration.

    Note: to get the path without a URL prefix, you can use this.unprefixed.path(rawPath)

    rawPath

    The original path of the asset

    Definition Classes
    AssetsFinder
  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  17. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  18. lazy val unprefixed: AssetsFinder

    Permalink

    returns

    an AssetsFinder with no URL prefix

    Definition Classes
    AssetsFinder
  19. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. def withAssetsPath(newPath: String): AssetsFinder

    Permalink

    Create an AssetsFinder with a custom assets location (replacing the current assets base path)

    Create an AssetsFinder with a custom assets location (replacing the current assets base path)

    Definition Classes
    AssetsFinder
  23. def withUrlPrefix(newPrefix: String): AssetsFinder

    Permalink

    Create an AssetsFinder with a custom URL prefix (replacing the current prefix)

    Create an AssetsFinder with a custom URL prefix (replacing the current prefix)

    Definition Classes
    AssetsFinder

Inherited from AssetsFinder

Inherited from AnyRef

Inherited from Any

Ungrouped