Class

controllers

DefaultAssetsMetadata

Related Doc: package controllers

Permalink

class DefaultAssetsMetadata extends AssetsMetadata

Default implementation of AssetsMetadata.

If your application uses reverse routing with assets or the Assets static object, you should use the AssetsMetadataProvider to set up needed statics.

Annotations
@Singleton()
Source
Assets.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultAssetsMetadata
  2. AssetsMetadata
  3. AssetsFinder
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DefaultAssetsMetadata(env: Environment, config: AssetsConfiguration, fileMimeTypes: FileMimeTypes)

    Permalink
    Annotations
    @Inject()
  2. new DefaultAssetsMetadata(config: AssetsConfiguration, resource: (String) ⇒ Option[URL], fileMimeTypes: FileMimeTypes)

    Permalink

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. val assetsBasePath: String

    Permalink

    The configured assets path

    The configured assets path

    Definition Classes
    DefaultAssetsMetadataAssetsFinder
  6. val assetsUrlPrefix: String

    Permalink

    The configured assets prefix

    The configured assets prefix

    Definition Classes
    DefaultAssetsMetadataAssetsFinder
  7. def clone(): AnyRef

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def findAssetPath(base: String, path: 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.

    Definition Classes
    DefaultAssetsMetadataAssetsFinder
  12. final def getClass(): Class[_]

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  18. 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
  19. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

    Permalink

    returns

    an AssetsFinder with no URL prefix

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. 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
  26. 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 AssetsMetadata

Inherited from AssetsFinder

Inherited from AnyRef

Inherited from Any

Ungrouped