Class ConsumerExecutionAction

java.lang.Object
org.springframework.webflow.action.AbstractAction
org.apereo.cas.web.flow.actions.BaseCasWebflowAction
org.apereo.cas.web.flow.actions.ConsumerExecutionAction
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.webflow.execution.Action
Direct Known Subclasses:
PopulateMessageContextAction.Errors, PopulateMessageContextAction.Info, PopulateMessageContextAction.Warning

public class ConsumerExecutionAction extends BaseCasWebflowAction
Since:
6.4.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.springframework.webflow.execution.Action
    Consumer action that sets the response status to HttpStatus.NO_CONTENT and marks the response as completed.
    static final org.springframework.webflow.execution.Action
    Consumer action that does nothing and returns null, effectively being a no-op.
    static final org.springframework.webflow.execution.Action
    Consumer action that sets the response status to HttpStatus.OK and marks the response as completed.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ConsumerExecutionAction(Consumer<org.springframework.webflow.execution.RequestContext> task)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.webflow.execution.Event
    doExecuteInternal(org.springframework.webflow.execution.RequestContext requestContext)
     
    setEventId(String eventId)
     
     
    static org.springframework.webflow.execution.Action
    wrap(org.springframework.webflow.execution.Action innerAction)
    Wrap action.

    Methods inherited from class org.springframework.webflow.action.AbstractAction

    afterPropertiesSet, execute, getEventFactorySupport

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • NONE

      public static final org.springframework.webflow.execution.Action NONE
      Consumer action that does nothing and returns null, effectively being a no-op.
    • OK

      public static final org.springframework.webflow.execution.Action OK
      Consumer action that sets the response status to HttpStatus.OK and marks the response as completed.
    • NO_CONTENT

      public static final org.springframework.webflow.execution.Action NO_CONTENT
      Consumer action that sets the response status to HttpStatus.NO_CONTENT and marks the response as completed.
  • Constructor Details

    • ConsumerExecutionAction

      public ConsumerExecutionAction(Consumer<org.springframework.webflow.execution.RequestContext> task)
  • Method Details

    • doExecuteInternal

      public org.springframework.webflow.execution.Event doExecuteInternal(org.springframework.webflow.execution.RequestContext requestContext) throws Exception
      Throws:
      Exception
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • wrap

      public static org.springframework.webflow.execution.Action wrap(org.springframework.webflow.execution.Action innerAction)
      Wrap action.
      Parameters:
      innerAction - the inner action
      Returns:
      the action
    • setEventId

      public ConsumerExecutionAction setEventId(String eventId)
      Returns:
      this.