|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.opencms.main.OpenCmsSolrHandler
public class OpenCmsSolrHandler
The OpenCms Solr handler.
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
| Field Summary | |
|---|---|
static java.lang.String |
HANDLER_NAME_SOLR_SELECT
The Solr select handler. |
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 Summary | |
|---|---|
OpenCmsSolrHandler()
|
|
| Method Summary | |
|---|---|
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 void |
initializeRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Initialized the search request and sets the local parameter. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, 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 |
| Field Detail |
|---|
public static final java.lang.String HANDLER_NAME_SOLR_SELECT
public 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
| Constructor Detail |
|---|
public OpenCmsSolrHandler()
| Method Detail |
|---|
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_CmsRequestHandler
getHandlerNames 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_CmsRequestHandler
handle in interface I_CmsRequestHandlerreq - the current requestres - the current responsename - the handler name to invoke
java.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 request
CmsException - if something goes wrong
protected void 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 response
CmsException - if something goes wrong
java.lang.Exception - if something goes wrong
CmsSearchException - if something goes wrong
java.io.IOException - if something goes wrong
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||