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 Configuration.reference and Environment.simple as defaults.
Creates java context components from environment, using Configuration.reference and 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 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 methods in the JavaGlobalSettingsAdapter, which need to be handled like Java actions, but are not Java actions. In this case, f may return null, so we wrap its result in an Option. E.g. see the default behavior of GlobalSettings.onError.
The request
the context components
The function to invoke
The result
Invoke the given block with Java context created from the request header
Invoke the given block with Java context created from the request header