Package com.cksource.ckfinder.event
Class ResolveCommandEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.cksource.ckfinder.event.Event
com.cksource.ckfinder.event.RequestContextAwareEvent
com.cksource.ckfinder.event.ResolveCommandEvent
- All Implemented Interfaces:
Serializable
The ResolveCommandEvent event class.
Event triggered for resolving the Command
class to handle current
HTTP request.
- 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
ConstructorsConstructorDescriptionResolveCommandEvent
(Object source, String commandName, HttpServletRequest request, HttpServletResponse response) Constructs the event. -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setCommand
(Command command) Sets the command instance which will be used to handle the current HTTP 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
-
ResolveCommandEvent
public ResolveCommandEvent(Object source, String commandName, HttpServletRequest request, HttpServletResponse response) Constructs the event.- Parameters:
source
- the object on which the Event initially occurredcommandName
- current command namerequest
- current HTTP requestresponse
- current HTTP response
-
-
Method Details
-
getCommandName
- Returns:
- the name of resolved command
-
getCommand
- Returns:
- command instance
-
setCommand
Sets the command instance which will be used to handle the current HTTP request.- Parameters:
command
- command instance
-
hasCommand
public boolean hasCommand()- Returns:
- true if this event has the command set
-