public class DelegationTokenHttpSolrClient extends HttpSolrClient
HttpSolrClient.Builder, HttpSolrClient.HttpUriRequestResponse, HttpSolrClient.RemoteSolrException
Modifier and Type | Field and Description |
---|---|
static String |
DELEGATION_TOKEN_PARAM |
AGENT, baseUrl, invariantParams, parser, requestWriter
Modifier | Constructor and Description |
---|---|
protected |
DelegationTokenHttpSolrClient(String baseURL,
org.apache.http.client.HttpClient client,
ResponseParser parser,
boolean allowCompression,
ModifiableSolrParams invariantParams)
This constructor is defined at "protected" scope.
|
|
DelegationTokenHttpSolrClient(String baseURL,
org.apache.http.client.HttpClient client,
ResponseParser parser,
boolean allowCompression,
String delegationToken)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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, setAllowCompression, setBaseURL, setConnectionTimeout, setDefaultMaxConnectionsPerHost, setFollowRedirects, setMaxTotalConnections, setParser, setRequestWriter, setSoTimeout, setUseMultiPartPost
add, 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, query, query, query, query, queryAndStreamResponse, queryAndStreamResponse, request, rollback, rollback
public static final String DELEGATION_TOKEN_PARAM
@Deprecated public DelegationTokenHttpSolrClient(String baseURL, org.apache.http.client.HttpClient client, ResponseParser parser, boolean allowCompression, String delegationToken)
baseURL
- 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 ?delegationToken
- The delegation token string.protected DelegationTokenHttpSolrClient(String baseURL, org.apache.http.client.HttpClient client, ResponseParser parser, boolean allowCompression, ModifiableSolrParams invariantParams)
baseURL
- 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
in class HttpSolrClient
IOException
SolrServerException
public void setQueryParams(Set<String> queryParams)
HttpSolrClient
setQueryParams
in class HttpSolrClient
queryParams
- 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 © 2000-2017 Apache Software Foundation. All Rights Reserved.