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
| 限定符和类型 | 字段和说明 |
|---|---|
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.
|
| 构造器和说明 |
|---|
OpenCmsSolrHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
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 void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws java.io.IOException
doGet 在类中 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 在类中 javax.servlet.http.HttpServletjava.io.IOExceptionHttpServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)public java.lang.String[] getHandlerNames()
I_CmsRequestHandlergetHandlerNames 在接口中 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 在接口中 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 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 responseCmsException - if something goes wrongjava.lang.Exception - if something goes wrongCmsSearchException - if something goes wrongjava.io.IOException - if something goes wrong