Package org.apache.solr.request
Class LocalSolrQueryRequest
- java.lang.Object
-
- org.apache.solr.request.SolrQueryRequestBase
-
- org.apache.solr.request.LocalSolrQueryRequest
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,SolrQueryRequest
public class LocalSolrQueryRequest extends SolrQueryRequestBase
-
-
Field Summary
Fields Modifier and Type Field Description String
userPrincipalName
-
Fields inherited from class org.apache.solr.request.SolrQueryRequestBase
context, core, json, origParams, params, schema, searcherHolder, startTime, streams
-
-
Constructor Summary
Constructors Constructor Description LocalSolrQueryRequest(SolrCore core, String query, String qtype, int start, int limit, Map<?,?> args)
LocalSolrQueryRequest(SolrCore core, Map<String,String[]> args)
LocalSolrQueryRequest(SolrCore core, org.apache.solr.common.params.SolrParams args)
LocalSolrQueryRequest(SolrCore core, org.apache.solr.common.util.NamedList<?> args)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Principal
getUserPrincipal()
protected static org.apache.solr.common.params.SolrParams
makeParams(String query, String qtype, int start, int limit, Map<?,?> args)
void
setUserPrincipalName(String s)
Allows setting the 'name' of the User Principal for the purposes of creating local requests in a solr node when security is enabled.-
Methods inherited from class org.apache.solr.request.SolrQueryRequestBase
close, getCommands, getContentStreams, getContext, getCore, getJSON, getOriginalParams, getParams, getParamString, getRequestTimer, getSchema, getSearcher, getSpan, getSpec, getStartTime, getTracer, getValidators, setContentStreams, setJSON, setParams, toString, updateSchemaToLatest
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.solr.request.SolrQueryRequest
getCloudDescriptor, getCoreContainer, getHttpMethod, getHttpSolrCall, getPath, getPathTemplateValues
-
-
-
-
Field Detail
-
userPrincipalName
public String userPrincipalName
-
-
Constructor Detail
-
LocalSolrQueryRequest
public LocalSolrQueryRequest(SolrCore core, String query, String qtype, int start, int limit, Map<?,?> args)
-
LocalSolrQueryRequest
public LocalSolrQueryRequest(SolrCore core, org.apache.solr.common.util.NamedList<?> args)
-
LocalSolrQueryRequest
public LocalSolrQueryRequest(SolrCore core, org.apache.solr.common.params.SolrParams args)
-
-
Method Detail
-
makeParams
protected static org.apache.solr.common.params.SolrParams makeParams(String query, String qtype, int start, int limit, Map<?,?> args)
-
getUserPrincipal
public Principal getUserPrincipal()
- Specified by:
getUserPrincipal
in interfaceSolrQueryRequest
- Overrides:
getUserPrincipal
in classSolrQueryRequestBase
-
setUserPrincipalName
public void setUserPrincipalName(String s)
Allows setting the 'name' of the User Principal for the purposes of creating local requests in a solr node when security is enabled. It is experiemental and subject to removal- See Also:
PKIAuthenticationPlugin.NODE_IS_USER
,getUserPrincipal()
- WARNING: This API is experimental and might change in incompatible ways in the next release.
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
-