Creates a java context from a scala Request[RequestBody]
Creates a java context from a scala RequestHeader
Creates a scala result from java context and result objects
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 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 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