Package com.cksource.ckfinder.servlet
Class CKFinderServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.cksource.ckfinder.servlet.CKFinderServlet
- All Implemented Interfaces:
Servlet
,ServletConfig
,Serializable
Servlet for handling CKFinder's HTTP requests.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected CKFinder
CKFinder service instance used by this servlet.protected JsonDataResolver
JSON data resolver used by this servlet.protected static Logger
Logger instance used by this servletprotected MultipartResolver
Multipart resolver used by this servlet.protected AnnotationConfigWebApplicationContext
Servlet's own internal web application context. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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.Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doPut, doTrace, getLastModified, service, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
webApplicationContext
Servlet's own internal web application context. -
ckfinder
CKFinder service instance used by this servlet. -
multipartResolver
Multipart resolver used by this servlet. -
jsonDataResolver
JSON data resolver used by this servlet.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.
-
logger
Logger instance used by this servlet
-
-
Constructor Details
-
CKFinderServlet
public CKFinderServlet()
-
-
Method Details
-
buildRequestAttributes
protected ServletRequestAttributes buildRequestAttributes(HttpServletRequest request, HttpServletResponse response, RequestAttributes previousAttributes) Builds ServletRequestAttributes.- Parameters:
request
- current HTTP requestresponse
- current HTTP responsepreviousAttributes
- pre-bound RequestAttributes instance, if any- Returns:
- the ServletRequestAttributes to bind, or
null
to preserve the previously bound instance (or not binding any, if none bound before) - See Also:
-
processRequest
Processes the HTTP request and writes the HTTP response.- Parameters:
request
- current HTTP requestresponse
- current HTTP response
-
doGet
Processes HTTP GET request.- Overrides:
doGet
in classHttpServlet
-
doPost
Processes HTTP POST request.- Overrides:
doPost
in classHttpServlet
-
doOptions
Processes HTTP OPTIONS request.- Overrides:
doOptions
in classHttpServlet
-
init
Initializes the servlet and the internal web application context.- Specified by:
init
in interfaceServlet
- Overrides:
init
in classGenericServlet
- Parameters:
config
- current servlet config- Throws:
ServletException
- in case of an initialization exception
-