t

controllers

AssetsFinder

trait AssetsFinder extends AnyRef

Can be used to find assets according to configured base path and URL base.

Self Type
AssetsFinder
Source
Assets.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AssetsFinder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def assetsBasePath: String

    The configured assets path

  2. abstract def assetsUrlPrefix: String

    The configured assets prefix

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

    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

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  14. def path(rawPath: String): String

    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

  15. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. lazy val unprefixed: AssetsFinder

    returns

    an AssetsFinder with no URL prefix

  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. def withAssetsPath(newPath: String): AssetsFinder

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

  22. def withUrlPrefix(newPrefix: String): AssetsFinder

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

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped