Package com.cksource.ckfinder.servlet
Class StaticResourcesHandler
java.lang.Object
com.cksource.ckfinder.servlet.StaticResourcesHandler
Serves static resources.
If serveStaticResources
option is enabled in the configuration,
this handler is registered to serve static resources used by CKFinder
frontend (JavaScript and HTML files, CSS styles, etc.).
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Path prefix under which the static content will be accessible.protected ServletContext
protected static final String
CKFinder static contents location in resources. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
serveStaticResource
(HttpServletRequest request, HttpServletResponse response) Handles the request and returns the response containing the requested static content.
-
Field Details
-
servletContext
-
PATH_PREFIX
Path prefix under which the static content will be accessible.- See Also:
-
STATIC_CONTENT_LOCATION
CKFinder static contents location in resources.- See Also:
-
-
Constructor Details
-
StaticResourcesHandler
public StaticResourcesHandler()
-
-
Method Details
-
serveStaticResource
public void serveStaticResource(HttpServletRequest request, HttpServletResponse response) throws IOException Handles the request and returns the response containing the requested static content.- Parameters:
request
- current HTTP requestresponse
- current HTTP response- Throws:
IOException
- in any case of processing failure
-