trait JavaHelpers extends AnyRef
Provides helper methods that manage Java to Scala Result and Scala to Java Context creation
- Source
- JavaHelpers.scala
- Alphabetic
- By Inheritance
- JavaHelpers
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def cookiesToJavaCookies(cookies: Cookies): Cookies
- def cookiesToScalaCookies(cookies: Iterable[Cookie]): Seq[Cookie]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def javaMapOfArraysToScalaSeqOfPairs(m: Map[String, Array[String]]): Seq[(String, String)]
- def javaMapOfListToScalaSeqOfPairs(m: Map[String, List[String]]): Seq[(String, String)]
- def javaMapToImmutableScalaMap[A, B](m: Map[A, B]): Map[A, B]
- def mergeNewCookie(cookies: Cookies, newCookie: Cookie): Cookies
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def scalaMapOfSeqsToJavaMapOfArrays(m: Map[String, Seq[String]]): Map[String, Array[String]]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def updateRequestWithUri[A](req: Request[A], parsedUri: URI): Request[A]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def createContextComponents(messagesApi: MessagesApi, langs: Langs, fileMimeTypes: FileMimeTypes, httpConfiguration: HttpConfiguration): JavaContextComponents
Creates JavaContextComponents directly from components..
Creates JavaContextComponents directly from components..
- messagesApi
the messagesApi instance
- langs
the langs instance
- fileMimeTypes
the file mime types
- httpConfiguration
the http configuration
- returns
an instance of JavaContextComponents with given input components.
- Annotations
- @deprecated
- Deprecated
(Since version 2.8.0) Inject MessagesApi, Langs, FileMimeTypes or HttpConfiguration instead
- def createContextComponents(configuration: Configuration, env: api.Environment): JavaContextComponents
Creates context components from environment.
Creates context components from environment.
- configuration
play config.
- env
play environment.
- returns
an instance of JavaContextComponents with default messagesApi and langs.
- Annotations
- @deprecated
- Deprecated
(Since version 2.8.0) Inject MessagesApi, Langs, FileMimeTypes or HttpConfiguration instead
- def createContextComponents(): JavaContextComponents
Creates java context components from environment, using play.api.Configuration.reference and play.api.Environment.simple as defaults.
Creates java context components from environment, using play.api.Configuration.reference and play.api.Environment.simple as defaults.
- returns
an instance of JavaContextComponents.
- Annotations
- @deprecated
- Deprecated
(Since version 2.8.0) Inject MessagesApi, Langs, FileMimeTypes or HttpConfiguration instead