Package play.libs
Provides various APIs that are useful for developing web applications.
-
Interface Summary Interface Description F.Function3<A,B,C,R> A Function with 3 arguments.F.Function4<A,B,C,D,R> A Function with 4 arguments.Files.TemporaryFile A temporary file created by a TemporaryFileCreator.Files.TemporaryFileCreator This creates temporary files when Play needs to keep overflow data on the filesystem. -
Class Summary Class Description Akka Helper to access the application defined Akka Actor system.AnnotationUtils Annotation utilities.Comet Provides an easy way to use a Comet formatted output with Akka Streams.EventSource This class provides an easy way to use Server Sent Events (SSE) as a chunked encoding, using an Akka Source.EventSource.Event Utility class to build events.F Defines a set of functional programming style helpers.F.Either<L,R> Represents a value of one of two possible types (a disjoint union)F.LazySupplier<T> F.Tuple<A,B> A pair - a tuple of the typesA
andB
.F.Tuple3<A,B,C> A tuple of A,B,CF.Tuple4<A,B,C,D> A tuple of A,B,C,DF.Tuple5<A,B,C,D,E> A tuple of A,B,C,D,EFiles Contains TemporaryFile and TemporaryFileCreator operations.Files.DelegateTemporaryFile Delegates to the Scala implementation.Files.DelegateTemporaryFileCreator A temporary file creator that delegates to a Scala TemporaryFileCreator.Files.SingletonTemporaryFileCreator A temporary file creator that uses the Scala play.api.libs.Files.SingletonTemporaryFileCreator class behind the scenes.Json Helper functions to handle JsonNode values.Jsonp The JSONP Content renders a JavaScript call of a JSON object.
Example of use, provided the following route definition:Resources Provides utility functions to work with resources.Scala Class that contains useful java <-> scala conversion helpers.Time Time utilities.Time.CronExpression Thanks to Quartz project, https://quartz.dev.java.netXML XML utilities.XML.Constants Includes the SAX prefixes from 'com.sun.org.apache.xerces.internal.impl.Constants' since they will likely be internal in JDK9XPath XPath for parsing -
Exception Summary Exception Description F.PromiseTimeoutException Exception thrown when an operation times out.