Resources

play.utils.Resources
object Resources

Provide resources helpers

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Resources.type

Members list

Value members

Concrete methods

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.

Attributes

def isDirectory(classLoader: ClassLoader, url: URL): Boolean
def isUrlConnectionADirectory(classLoader: ClassLoader, 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.

Attributes

Deprecated methods

def isUrlConnectionADirectory(urlConnection: URLConnection): Boolean

Attributes

Deprecated
true