public class CKFinderServlet extends HttpServlet
Modifier and Type | Field and Description |
---|---|
protected CKFinder |
ckfinder
CKFinder service instance used by this servlet.
|
protected JsonDataResolver |
jsonDataResolver
JSON data resolver used by this servlet.
|
protected static org.slf4j.Logger |
logger
Logger instance used by this servlet
|
protected MultipartResolver |
multipartResolver
Multipart resolver used by this servlet.
|
protected AnnotationConfigWebApplicationContext |
webApplicationContext
Servlet's own internal web application context.
|
Constructor and Description |
---|
CKFinderServlet() |
Modifier and Type | Method and Description |
---|---|
protected ServletRequestAttributes |
buildRequestAttributes(HttpServletRequest request,
HttpServletResponse response,
RequestAttributes previousAttributes)
Builds ServletRequestAttributes.
|
protected void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Processes HTTP GET request.
|
protected void |
doOptions(HttpServletRequest request,
HttpServletResponse response)
Processes HTTP OPTIONS request.
|
protected void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Processes HTTP POST request.
|
void |
init(ServletConfig config)
Initializes the servlet and the internal web application context.
|
protected void |
processRequest(HttpServletRequest request,
HttpServletResponse response)
Processes the HTTP request and writes the HTTP response.
|
doDelete, doHead, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
protected AnnotationConfigWebApplicationContext webApplicationContext
protected CKFinder ckfinder
protected MultipartResolver multipartResolver
protected JsonDataResolver jsonDataResolver
Some CKFinder commands send JSON data in their requests. This resolver parses the JSON data in the request and saves the data in request's attributes.
protected static org.slf4j.Logger logger
protected ServletRequestAttributes buildRequestAttributes(HttpServletRequest request, HttpServletResponse response, RequestAttributes previousAttributes)
request
- current HTTP requestresponse
- current HTTP responsepreviousAttributes
- pre-bound RequestAttributes instance, if anynull
to preserve
the previously bound instance (or not binding any, if none bound before)ServletRequestAttributes
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
request
- current HTTP requestresponse
- current HTTP responseprotected void doGet(HttpServletRequest request, HttpServletResponse response)
doGet
in class HttpServlet
protected void doPost(HttpServletRequest request, HttpServletResponse response)
doPost
in class HttpServlet
protected void doOptions(HttpServletRequest request, HttpServletResponse response)
doOptions
in class HttpServlet
public void init(ServletConfig config) throws ServletException
init
in interface Servlet
init
in class GenericServlet
config
- current servlet configServletException
- in case of an initialization exceptionCopyright © 2007 – 2019 CKSource - Frederico Knabben. All rights reserved.