play.core.j

JavaHelpers

trait JavaHelpers extends AnyRef

Provides helper methods that manage Java to Scala Result and Scala to Java Context creation

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JavaHelpers
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def cookiesToJavaCookies(cookies: Cookies): Cookies

  9. def cookiesToScalaCookies(cookies: Iterable[Cookie]): Seq[Cookie]

  10. def createJavaContext(req: Request[RequestBody]): Context

    Creates a java context from a scala Request[RequestBody]

    Creates a java context from a scala Request[RequestBody]

    req

  11. def createJavaContext(req: RequestHeader): Context

    Creates a java context from a scala RequestHeader

    Creates a java context from a scala RequestHeader

    req

  12. 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
    javaResult

  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. def invokeWithContext(request: RequestHeader, f: (Request) ⇒ Promise[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

    f

    The function to invoke

    returns

    The result

  19. def invokeWithContextOpt(request: RequestHeader, f: (Request) ⇒ Promise[Result]): Option[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 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.

    request

    The request

    f

    The function to invoke

    returns

    The result

  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. def withContext[A](request: RequestHeader)(block: (Context) ⇒ A): A

    Invoke the given block with Java context created from the request header

Inherited from AnyRef

Inherited from Any

Ungrouped