Package org.opencms.main
Class OpenCmsSpellcheckHandler
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.opencms.main.OpenCmsSpellcheckHandler
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
,I_CmsRequestHandler
public class OpenCmsSpellcheckHandler
extends javax.servlet.http.HttpServlet
implements I_CmsRequestHandler
Handles spell check requests.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected CmsObject
getCmsObject
(javax.servlet.http.HttpServletRequest req) Returns the CMS object.String[]
Returns the handler name.static String
Returns the path to the spell check handler.void
handle
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String name) Handles an OpenCms request.static boolean
Checks if the spell check request handler is configured.Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opencms.main.I_CmsRequestHandler
getConfiguration, initParameters
-
Field Details
-
PARAM_BASE_URI
A constant for the optional 'baseUri' parameter.- See Also:
-
HEADER_REFERER_KEY
A constant for the HTTP 'referer'.- See Also:
-
-
Constructor Details
-
OpenCmsSpellcheckHandler
public OpenCmsSpellcheckHandler()
-
-
Method Details
-
getSpellcheckHandlerPath
Returns the path to the spell check handler.- Returns:
- the path to the spell check handler
-
isSpellcheckingEnabled
Checks if the spell check request handler is configured.- Returns:
true
if the spell check request handler is configured
-
getHandlerNames
Description copied from interface:I_CmsRequestHandler
Returns the handler name.- Specified by:
getHandlerNames
in interfaceI_CmsRequestHandler
- Returns:
- the handler name
- See Also:
-
handle
public void handle(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String name) throws IOException Description copied from interface:I_CmsRequestHandler
Handles an OpenCms request.- Specified by:
handle
in interfaceI_CmsRequestHandler
- Parameters:
req
- the current requestres
- the current responsename
- the handler name to invoke- Throws:
IOException
- in case an error occurs- See Also:
-
getCmsObject
Returns the CMS object.- Parameters:
req
- the request- Returns:
- the CMS object
- Throws:
CmsException
- if something goes wrong
-