Class OpenCmsSolrHandler

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, I_CmsRequestHandler

    public class OpenCmsSolrHandler
    extends javax.servlet.http.HttpServlet
    implements I_CmsRequestHandler
    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

    Since:
    8.5.0
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.Collection<java.lang.String> DEFAULT_ALLOWED_WRITE_TO_VALUES
      The default allowed wt parameter values
      protected static java.lang.String HEADER_REFERER_KEY
      A constant for the HTTP 'referer'.
      java.util.Collection<java.lang.String> m_allowedWriteTo
      The allowed wt parameter values
      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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      void initParameters​(CmsParameterConfiguration params)
      Initializes parameters.
      • 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