Package com.cksource.ckfinder.event
Class GetConfigForRequestEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.cksource.ckfinder.event.Event
com.cksource.ckfinder.event.RequestContextAwareEvent
com.cksource.ckfinder.event.GetConfigForRequestEvent
- All Implemented Interfaces:
Serializable
The GetConfigForRequestEvent event class.
This event is triggered when config copy is created to handle the current
HTTP request. Config
copy obtained by this event is used to configure
the connector behavior for current HTTP request scope.
- 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
ConstructorDescriptionGetConfigForRequestEvent
(Object source, Config config, HttpServletRequest request, HttpServletResponse response) Constructs the event. -
Method Summary
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
-
GetConfigForRequestEvent
public GetConfigForRequestEvent(Object source, Config config, HttpServletRequest request, HttpServletResponse response) Constructs the event.- Parameters:
source
- the object on which the event initially occurredconfig
- configuration to use for current HTTP requestrequest
- current HTTP requestresponse
- current HTTP response
-
-
Method Details
-
getConfig
ReturnsConfig
instance used to configure the connector behavior for current HTTP request scope.- Returns:
- CKFinder configuration for current HTTP request
-