Packages

o

play.utils

Resources

object Resources

Provide resources helpers

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

Value Members

  1. def closeUrlConnection(connection: URLConnection): Unit

    Close a URL connection.

    Close a URL connection.

    This works around a JDK bug where if the URL connection is to a JAR file, and the entry is a directory, an NPE is thrown.

  2. def isDirectory(classLoader: ClassLoader, url: URL): Boolean
  3. def isUrlConnectionADirectory(urlConnection: URLConnection): Boolean

    Tries to work out whether the given URL connection is a directory or not.

    Tries to work out whether the given URL connection is a directory or not.

    Depends on the URL connection type whether it's accurate. If it's unable to determine whether it's a directory, this returns false.