object JavaHelpers extends JavaHelpers
- Source
- JavaHelpers.scala
- Alphabetic
- By Inheritance
- JavaHelpers
- JavaHelpers
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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( ... ) @native()
-
def
cookiesToJavaCookies(cookies: Cookies): Cookies
- Definition Classes
- JavaHelpers
-
def
cookiesToScalaCookies(cookies: Iterable[Cookie]): Seq[Cookie]
- Definition Classes
- JavaHelpers
-
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.
- Definition Classes
- JavaHelpers
-
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.
- Definition Classes
- JavaHelpers
-
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.
- Definition Classes
- JavaHelpers
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- 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)]
- Definition Classes
- JavaHelpers
-
def
javaMapOfListToScalaSeqOfPairs(m: Map[String, List[String]]): Seq[(String, String)]
- Definition Classes
- JavaHelpers
-
def
javaMapToImmutableScalaMap[A, B](m: Map[A, B]): Map[A, B]
- Definition Classes
- JavaHelpers
-
def
mergeNewCookie(cookies: Cookies, newCookie: Cookie): Cookies
- Definition Classes
- JavaHelpers
-
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]]
- Definition Classes
- JavaHelpers
-
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]
- Definition Classes
- JavaHelpers
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
Deprecated Value Members
-
def
createJavaContext(req: Request[RequestBody], components: JavaContextComponents): Context
Creates a java context from a scala Request[RequestBody]
Creates a java context from a scala Request[RequestBody]
- req
the scala request
- components
the context components (use JavaHelpers.createContextComponents)
- Definition Classes
- JavaHelpers
- Annotations
- @deprecated
- Deprecated
(Since version 2.7.0) See https://www.playframework.com/documentation/latest/JavaHttpContextMigration27
-
def
createJavaContext(req: RequestHeader, components: JavaContextComponents): Context
Creates a java context from a scala RequestHeader
Creates a java context from a scala RequestHeader
- req
the scala request
- components
the context components (use JavaHelpers.createContextComponents)
- Definition Classes
- JavaHelpers
- Annotations
- @deprecated
- Deprecated
(Since version 2.7.0) See https://www.playframework.com/documentation/latest/JavaHttpContextMigration27
-
def
createResult(javaContext: Context, javaResult: Result): Result
Creates a scala result from java context and result objects
Creates a scala result from java context and result objects
- javaContext
the Java Http.Context
- javaResult
the Java Result
- Definition Classes
- JavaHelpers
- Annotations
- @deprecated
- Deprecated
(Since version 2.7.0) See https://www.playframework.com/documentation/latest/JavaHttpContextMigration27
-
def
invokeWithContext(request: RequestHeader, components: JavaContextComponents, f: (Request) ⇒ CompletionStage[Result]): Future[Result]
Invoke the given function with the right context set, converting the scala request to a Java request, and converting the resulting Java result to a Scala result, before returning it.
Invoke the given function with the right context set, converting the scala request to a Java request, and converting the resulting Java result to a Scala result, before returning it.
This is intended for use by callback methods in Java adapters.
- request
The request
- components
the context components
- f
The function to invoke
- returns
The result
- Definition Classes
- JavaHelpers
- Annotations
- @deprecated
- Deprecated
(Since version 2.7.0) See https://www.playframework.com/documentation/latest/JavaHttpContextMigration27
-
def
withContext[A](request: RequestHeader, components: JavaContextComponents)(block: (Context) ⇒ A): A
Invoke the given block with Java context created from the request header
Invoke the given block with Java context created from the request header
- Definition Classes
- JavaHelpers
- Annotations
- @deprecated
- Deprecated
(Since version 2.7.0) See https://www.playframework.com/documentation/latest/JavaHttpContextMigration27