Class AfterAction


public class AfterAction extends ObjectWithJsonToString
  • Constructor Details

    • AfterAction

      public AfterAction()
  • Method Details

    • afterAction

      public static AfterAction afterAction()
    • beforeAction

      public static AfterAction beforeAction()
      Convenience factory producing an action intended for use as a before-action. Identical to afterAction(); the same type backs both beforeActions and afterActions.
    • getHttpRequest

      public HttpRequest getHttpRequest()
    • withHttpRequest

      public AfterAction withHttpRequest(HttpRequest httpRequest)
    • getHttpClassCallback

      public HttpClassCallback getHttpClassCallback()
    • withHttpClassCallback

      public AfterAction withHttpClassCallback(HttpClassCallback httpClassCallback)
    • getHttpObjectCallback

      public HttpObjectCallback getHttpObjectCallback()
    • withHttpObjectCallback

      public AfterAction withHttpObjectCallback(HttpObjectCallback httpObjectCallback)
    • getDelay

      public Delay getDelay()
    • withDelay

      public AfterAction withDelay(Delay delay)
    • getBlocking

      public Boolean getBlocking()
      Before-actions only: when true (the default when unset) the primary response waits for this action to complete before being written; when false the action is started before the response but not waited for. Ignored for after-actions.
    • withBlocking

      public AfterAction withBlocking(Boolean blocking)
    • getTimeout

      public Delay getTimeout()
      Before-actions only: maximum time to wait for a blocking action to complete. When the timeout elapses the action is treated as failed (see getFailurePolicy()). When unset only the underlying client's socket timeout applies. Ignored for after-actions.
    • withTimeout

      public AfterAction withTimeout(Delay timeout)
    • getFailurePolicy

      public FailurePolicy getFailurePolicy()
      Before-actions only: what to do with the primary response when a blocking action fails or times out. Defaults to FailurePolicy.BEST_EFFORT when unset. Ignored for after-actions.
    • withFailurePolicy

      public AfterAction withFailurePolicy(FailurePolicy failurePolicy)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class ObjectWithReflectiveEqualsHashCodeToString
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class ObjectWithReflectiveEqualsHashCodeToString