public class DelegationTokenHttpSolrClient extends HttpSolrClient
HttpSolrClient.Builder, HttpSolrClient.HttpUriRequestResponse, HttpSolrClient.RemoteExecutionException, HttpSolrClient.RemoteSolrException| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DELEGATION_TOKEN_PARAM |
AGENT, baseUrl, invariantParams, parser, requestWriter| 限定符 | 构造器和说明 |
|---|---|
protected |
DelegationTokenHttpSolrClient(HttpSolrClient.Builder builder) |
protected |
DelegationTokenHttpSolrClient(String baseURL,
org.apache.http.client.HttpClient client,
ResponseParser parser,
boolean allowCompression,
ModifiableSolrParams invariantParams)
已过时。
use
DelegationTokenHttpSolrClient(HttpSolrClient.Builder) instead, as it is a more
extension/subclassing-friendly alternative |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.apache.http.client.methods.HttpRequestBase |
createMethod(SolrRequest request,
String collection) |
void |
setQueryParams(Set<String> queryParams)
Expert Method
|
calculateQueryParams, close, executeMethod, getBaseURL, getHttpClient, getInvariantParams, getParser, getQueryParams, httpUriRequest, httpUriRequest, isUseMultiPartPost, request, request, request, setBaseURL, setConnectionTimeout, setFollowRedirects, setParser, setRequestWriter, setSoTimeout, setUseMultiPartPostadd, add, add, add, add, add, add, add, add, add, addBean, addBean, addBean, addBean, addBeans, addBeans, addBeans, addBeans, addBeans, addBeans, commit, commit, commit, commit, commit, commit, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteByQuery, deleteByQuery, deleteByQuery, deleteByQuery, getBinder, getById, getById, getById, getById, getById, getById, getById, getById, optimize, optimize, optimize, optimize, optimize, optimize, ping, ping, query, query, query, query, queryAndStreamResponse, queryAndStreamResponse, queryAndStreamResponse, request, rollback, rollbackprotected DelegationTokenHttpSolrClient(HttpSolrClient.Builder builder)
@Deprecated protected DelegationTokenHttpSolrClient(String baseURL, org.apache.http.client.HttpClient client, ResponseParser parser, boolean allowCompression, ModifiableSolrParams invariantParams)
DelegationTokenHttpSolrClient(HttpSolrClient.Builder) instead, as it is a more
extension/subclassing-friendly alternativebaseURL - The base url to communicate with the Solr serverclient - Http client instance to use for communicationparser - Response parser instance to use to decode response from Solr serverallowCompression - Should compression be allowed ?invariantParams - The parameters which should be passed with every request.protected org.apache.http.client.methods.HttpRequestBase createMethod(SolrRequest request, String collection) throws IOException, SolrServerException
createMethod 在类中 HttpSolrClientIOExceptionSolrServerExceptionpublic void setQueryParams(Set<String> queryParams)
HttpSolrClientsetQueryParams 在类中 HttpSolrClientqueryParams - set of param keys to only send via the query string
Note that the param will be sent as a query string if the key is part
of this Set or the SolrRequest's query params.SolrRequest.getQueryParams()Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.