Class ObjectActionResult<T>

  • Type Parameters:
    T - The type of object to wrap.

    The following example shows how to return a String from an IActionHandler:

    In the actionHandler's handle method do:
    return ObjectActionResult.fromObject(someString);
    On the receiving end do:
    String result = ObjectActionResult.getValue(actionResult);

    All Implemented Interfaces:
    com.aquima.interactions.portal.IActionResult, Serializable

    public final class ObjectActionResult<T>
    extends Object
    implements com.aquima.interactions.portal.IActionResult
    ActionResult that wraps a single object. This is an easy way to return a single object from an IActionHandler.
    See Also:
    Serialized Form
    • Method Detail

      • getObject

        public static <T> T getObject​(com.aquima.interactions.portal.IActionResult actionResult)
      • getObject

        public T getObject()
        Returns the wrapped Object. For your convenience use ObjectActionResult.getObject instead;
        Returns:
        the wrapped Object.