Class BeforeCommandEvent

All Implemented Interfaces:
Serializable

public class BeforeCommandEvent extends RequestContextAwareEvent
The BeforeCommandEvent event class.

Event triggered just before the command execution starts.

See Also:
  • Constructor Details

    • BeforeCommandEvent

      public BeforeCommandEvent(Object source, String commandName, HttpServletRequest request, HttpServletResponse response)
      Constructs the event instance.
      Parameters:
      source - the object on which the event initially occurred
      commandName - current command name
      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 BeforeCommandEvent 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