Package com.cksource.ckfinder.event
Class AfterCommandEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.cksource.ckfinder.event.Event
com.cksource.ckfinder.event.RequestContextAwareEvent
com.cksource.ckfinder.event.AfterCommandEvent
- All Implemented Interfaces:
Serializable
The AfterCommandEvent event class.
Event triggered after the command processing is finished, before the HTTP response is created.
- 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
ConstructorsConstructorDescriptionAfterCommandEvent
(Object source, String commandName, ResponseEntity responseEntity, HttpServletRequest request, HttpServletResponse response) Constructs the event instance. -
Method Summary
Modifier and TypeMethodDescriptionsetResponseEntity
(ResponseEntity responseEntity) Sets response entity object that will be used to build HTTP response for current request.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
-
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 occurredcommandName
- current command nameresponseEntity
- response entity that holds data to build HTTP response for current requestrequest
- current HTTP requestresponse
- current HTTP response
-
-
Method Details
-
getCommandName
- Returns:
- current command name
-
getResponseEntity
- Returns:
- response entity object that holds data to build HTTP response for current request
-
setResponseEntity
Sets response entity object that will be used to build HTTP response for current request.- Parameters:
responseEntity
- response entity object- Returns:
- this
-