public class OpenCmsSpellcheckHandler extends javax.servlet.http.HttpServlet implements I_CmsRequestHandler
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
HEADER_REFERER_KEY
A constant for the HTTP 'referer'.
|
static java.lang.String |
PARAM_BASE_URI
A constant for the optional 'baseUri' parameter.
|
Constructor and Description |
---|
OpenCmsSpellcheckHandler() |
Modifier and Type | Method and Description |
---|---|
protected CmsObject |
getCmsObject(javax.servlet.http.HttpServletRequest req)
Returns the CMS object.
|
java.lang.String[] |
getHandlerNames()
Returns the handler name.
|
static java.lang.String |
getSpellcheckHandlerPath()
Returns the path to the spell check handler.
|
void |
handle(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String name)
Handles an OpenCms request.
|
static boolean |
isSpellcheckingEnabled()
Checks if the spell check request handler is configured.
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
protected static final java.lang.String HEADER_REFERER_KEY
public static final java.lang.String PARAM_BASE_URI
public OpenCmsSpellcheckHandler()
protected CmsObject getCmsObject(javax.servlet.http.HttpServletRequest req) throws CmsException
req
- the requestCmsException
- if something goes wrongpublic java.lang.String[] getHandlerNames()
I_CmsRequestHandler
getHandlerNames
in interface I_CmsRequestHandler
I_CmsRequestHandler.getHandlerNames()
public static java.lang.String getSpellcheckHandlerPath()
public void handle(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.lang.String name) throws java.io.IOException
I_CmsRequestHandler
handle
in interface I_CmsRequestHandler
req
- the current requestres
- the current responsename
- the handler name to invokejava.io.IOException
- in case an error occursI_CmsRequestHandler.handle(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
public static boolean isSpellcheckingEnabled()
true
if the spell check request handler is configured