public class OpenCmsSolrHandler extends javax.servlet.http.HttpServlet implements I_CmsRequestHandler
Reachable under: "/opencms/opencms/handleSolrSelect".
Usage example:
http://localhost:8080/opencms/opencms/handleSolrSelect?fq=parent-folders:/sites/+type=v8article&fl=path&rows=10&sort=path%20asc
| 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.
|
static java.lang.String |
PARAM_CORE
A constant for the optional 'core' parameter.
|
static java.lang.String |
PARAM_INDEX
A constant for the optional 'index' parameter.
|
| Constructor and Description |
|---|
OpenCmsSolrHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
OpenCms servlet main request handling method.
|
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
OpenCms servlet POST request handling method,
will just call
doGet(HttpServletRequest, HttpServletResponse). |
protected CmsObject |
getCmsObject(javax.servlet.http.HttpServletRequest req)
Returns the CMS object.
|
java.lang.String[] |
getHandlerNames()
Returns the handler name.
|
void |
handle(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String name)
Handles an OpenCms request.
|
protected org.opencms.main.OpenCmsSolrHandler.Context |
initializeRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Initialized the search request and sets the local parameter.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic static final java.lang.String PARAM_BASE_URI
public static final java.lang.String PARAM_CORE
public static final java.lang.String PARAM_INDEX
protected static final java.lang.String HEADER_REFERER_KEY
public OpenCmsSolrHandler()
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.io.IOException
doGet in class javax.servlet.http.HttpServletjava.io.IOExceptionHttpServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.io.IOException
doGet(HttpServletRequest, HttpServletResponse).doPost in class javax.servlet.http.HttpServletjava.io.IOExceptionHttpServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)public java.lang.String[] getHandlerNames()
I_CmsRequestHandlergetHandlerNames in interface I_CmsRequestHandlerI_CmsRequestHandler.getHandlerNames()public void handle(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.lang.String name) throws java.io.IOException
I_CmsRequestHandlerhandle in interface I_CmsRequestHandlerreq - 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)protected CmsObject getCmsObject(javax.servlet.http.HttpServletRequest req) throws CmsException
req - the requestCmsException - if something goes wrongprotected org.opencms.main.OpenCmsSolrHandler.Context initializeRequest(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws CmsException, java.lang.Exception, CmsSearchException, java.io.IOException
req - the servlet requestres - the servlet responseCmsException - if something goes wrongjava.lang.Exception - if something goes wrongCmsSearchException - if something goes wrongjava.io.IOException - if something goes wrong