public class SolrDispatchFilter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SolrDispatchFilter.Action
Enum to define action that needs to be processed.
|
Modifier and Type | Field and Description |
---|---|
protected String |
abortErrorMessage |
protected CoreContainer |
cores |
protected org.apache.http.client.HttpClient |
httpClient |
protected CountDownLatch |
init |
static String |
PROPERTIES_ATTRIBUTE |
static String |
SOLR_DEFAULT_CONFDIR_ATTRIBUTE |
static String |
SOLR_INSTALL_DIR_ATTRIBUTE |
static String |
SOLR_LOG_LEVEL |
static String |
SOLR_LOG_MUTECONSOLE |
static String |
SOLRHOME_ATTRIBUTE |
Constructor and Description |
---|
SolrDispatchFilter() |
Modifier and Type | Method and Description |
---|---|
protected CoreContainer |
createCoreContainer(Path solrHome,
Properties extraProperties)
Override this to change CoreContainer initialization
|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain,
boolean retry) |
CoreContainer |
getCores() |
protected HttpSolrCall |
getHttpSolrCall(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean retry)
Allow a subclass to modify the HttpSolrCall.
|
void |
init(javax.servlet.FilterConfig config) |
static NodeConfig |
loadNodeConfig(Path solrHome,
Properties nodeProperties)
Get the NodeConfig whether stored on disk, in ZooKeeper, etc.
|
protected volatile CoreContainer cores
protected final CountDownLatch init
protected String abortErrorMessage
protected org.apache.http.client.HttpClient httpClient
public static final String PROPERTIES_ATTRIBUTE
public static final String SOLRHOME_ATTRIBUTE
public static final String SOLR_INSTALL_DIR_ATTRIBUTE
public static final String SOLR_DEFAULT_CONFDIR_ATTRIBUTE
public static final String SOLR_LOG_MUTECONSOLE
public static final String SOLR_LOG_LEVEL
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
javax.servlet.ServletException
protected CoreContainer createCoreContainer(Path solrHome, Properties extraProperties)
public static NodeConfig loadNodeConfig(Path solrHome, Properties nodeProperties)
public CoreContainer getCores()
public void destroy()
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain, boolean retry) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
protected HttpSolrCall getHttpSolrCall(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean retry)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.