Package com.cksource.ckfinder.event
Class BeforeCommandEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.cksource.ckfinder.event.Event
com.cksource.ckfinder.event.RequestContextAwareEvent
com.cksource.ckfinder.event.BeforeCommandEvent
- All Implemented Interfaces:
Serializable
The BeforeCommandEvent event class.
Event triggered just before the command execution starts.
- 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
ConstructorsConstructorDescriptionBeforeCommandEvent
(Object source, String commandName, 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
-
BeforeCommandEvent
public BeforeCommandEvent(Object source, String commandName, HttpServletRequest request, HttpServletResponse response) Constructs the event instance.- Parameters:
source
- the object on which the event initially occurredcommandName
- current command namerequest
- 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
-