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 static Map
emptyArgs
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, SolrParams args)
LocalSolrQueryRequest(SolrCore core, NamedList args)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Principal
getUserPrincipal()
protected static 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, getSpec, getStartTime, 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
getHttpMethod, getHttpSolrCall, getPath, getPathTemplateValues
-
-
-
-
Method Detail
-
makeParams
protected static 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.
-
-