Class AfterCommandEvent

All Implemented Interfaces:
Serializable

public class AfterCommandEvent extends RequestContextAwareEvent
The AfterCommandEvent event class.

Event triggered after the command processing is finished, before the HTTP response is created.

See Also:
  • Constructor Details

    • AfterCommandEvent

      public AfterCommandEvent(Object source, String commandName, ResponseEntity responseEntity, HttpServletRequest request, HttpServletResponse response)
      Constructs the event instance.
      Parameters:
      source - the object on which the event initially occurred
      commandName - current command name
      responseEntity - response entity that holds data to build HTTP response for current request
      request - current HTTP request
      response - current HTTP response
  • Method Details

    • getCommandName

      public String getCommandName()
      Returns:
      current command name
    • getResponseEntity

      public ResponseEntity getResponseEntity()
      Returns:
      response entity object that holds data to build HTTP response for current request
    • setResponseEntity

      public AfterCommandEvent setResponseEntity(ResponseEntity responseEntity)
      Sets response entity object that will be used to build HTTP response for current request.
      Parameters:
      responseEntity - response entity object
      Returns:
      this