Package com.cksource.ckfinder.event
Class ResponseEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.cksource.ckfinder.event.Event
com.cksource.ckfinder.event.RequestContextAwareEvent
com.cksource.ckfinder.event.ResponseEvent
- All Implemented Interfaces:
Serializable
The ResponseEvent event class.
This event is dispatched after the ResponseEntity
object is created, before
the final HTTP response assembling happens.
- See Also:
-
Field Summary
Fields inherited from class com.cksource.ckfinder.event.RequestContextAwareEvent
request, response
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionResponseEvent
(Object source, HttpServletRequest request, HttpServletResponse response, ResponseEntity responseEntity) Constructs the event. -
Method Summary
Modifier and TypeMethodDescriptionsetResponseEntity
(ResponseEntity responseEntity) Sets response entity object used to build current HTTP response.Methods inherited from class com.cksource.ckfinder.event.RequestContextAwareEvent
getRequest, getResponse
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
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 occurredrequest
- current HTTP requestresponse
- current HTTP responseresponseEntity
- response entity object
-
-
Method Details
-
getResponseEntity
- Returns:
- response entity object
-
setResponseEntity
Sets response entity object used to build current HTTP response.- Parameters:
responseEntity
- response entity object- Returns:
- this
-