Creates JavaContextComponents directly from components..
Creates JavaContextComponents directly from components..
the messagesApi instance
the langs instance
the file mime types
the http configuration
an instance of JavaContextComponents with given input components.
Creates context components from environment.
Creates context components from environment.
play config.
play environment.
an instance of JavaContextComponents with default messagesApi and langs.
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.
an instance of JavaContextComponents.
Creates a java context from a scala Request[RequestBody]
Creates a java context from a scala Request[RequestBody]
the scala request
the context components (use JavaHelpers.createContextComponents)
Creates a java context from a scala RequestHeader
Creates a java context from a scala RequestHeader
the scala request
the context components (use JavaHelpers.createContextComponents)
Creates a scala result from java context and result objects
Creates a scala result from java context and result objects
the Java Http.Context
the Java 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.
The request
the context components
The function to invoke
The result
Invoke the given block with Java context created from the request header
Provides helper methods that manage Java to Scala Result and Scala to Java Context creation