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, responseFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionGetConfigForRequestEvent(Object source, Config config, HttpServletRequest request, HttpServletResponse response) Constructs the event. -
Method Summary
Methods inherited from class com.cksource.ckfinder.event.RequestContextAwareEvent
getRequest, getResponseMethods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods 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
ReturnsConfiginstance used to configure the connector behavior for current HTTP request scope.- Returns:
- CKFinder configuration for current HTTP request
-