@Component public class StaticResourcesHandler extends Object
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.).
Modifier and Type | Field and Description |
---|---|
static String |
PATH_PREFIX
Path prefix under which the static content will be accessible.
|
protected ServletContext |
servletContext |
protected static String |
STATIC_CONTENT_LOCATION
CKFinder static contents location in resources.
|
Constructor and Description |
---|
StaticResourcesHandler() |
Modifier and Type | Method and Description |
---|---|
void |
serveStaticResource(HttpServletRequest request,
HttpServletResponse response)
Handles the request and returns the response containing the requested static content.
|
@Autowired protected ServletContext servletContext
public static final String PATH_PREFIX
protected static final String STATIC_CONTENT_LOCATION
public void serveStaticResource(HttpServletRequest request, HttpServletResponse response) throws IOException
request
- current HTTP requestresponse
- current HTTP responseIOException
- in any case of processing failureCopyright © 2007 – 2019 CKSource - Frederico Knabben. All rights reserved.