Class ResponseEvent

All Implemented Interfaces:
Serializable

public class ResponseEvent extends RequestContextAwareEvent
The ResponseEvent event class.

This event is dispatched after the ResponseEntity object is created, before the final HTTP response assembling happens.

See Also:
  • Constructor Details

    • ResponseEvent

      public ResponseEvent(Object source, HttpServletRequest request, HttpServletResponse response, ResponseEntity responseEntity)
      Constructs the event.
      Parameters:
      source - the object on which the event initially occurred
      request - current HTTP request
      response - current HTTP response
      responseEntity - response entity object
  • Method Details

    • getResponseEntity

      public ResponseEntity getResponseEntity()
      Returns:
      response entity object
    • setResponseEntity

      public ResponseEvent setResponseEntity(ResponseEntity responseEntity)
      Sets response entity object used to build current HTTP response.
      Parameters:
      responseEntity - response entity object
      Returns:
      this