Class PreemptiveBasicAuthClientBuilderFactory
- java.lang.Object
-
- org.apache.solr.client.solrj.impl.PreemptiveBasicAuthClientBuilderFactory
-
- All Implemented Interfaces:
Closeable,AutoCloseable,HttpClientBuilderFactory
@Deprecated(since="9.0") public class PreemptiveBasicAuthClientBuilderFactory extends Object implements HttpClientBuilderFactory
Deprecated.Please look into using Solr's new Http2 clientsHttpClientConfigurer implementation providing support for preemptive Http Basic authentication scheme.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSYS_PROP_BASIC_AUTH_CREDENTIALSDeprecated.A system property to configure the Basic auth credentials via a java system property.static StringSYS_PROP_HTTP_CLIENT_CONFIGDeprecated.A system property used to specify a properties file containing default parameters used for creating a HTTP client.
-
Constructor Summary
Constructors Constructor Description PreemptiveBasicAuthClientBuilderFactory()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.SolrHttpClientBuildergetHttpClientBuilder(SolrHttpClientBuilder builder)Deprecated.This method configures the SolrHttpClientBuilder by overriding the configuration of passed SolrHttpClientBuilder or as a new instance.static voidsetDefaultSolrParams(SolrParams params)Deprecated.This method enables configuring system wide defaults (apart from using a config file based approach).voidsetup(Http2SolrClient client)Deprecated.voidsetup(Http2SolrClient client, String basicAuthUser, String basicAuthPass)Deprecated.
-
-
-
Field Detail
-
SYS_PROP_HTTP_CLIENT_CONFIG
public static final String SYS_PROP_HTTP_CLIENT_CONFIG
Deprecated.A system property used to specify a properties file containing default parameters used for creating a HTTP client. This is specifically useful for configuring the HTTP basic auth credentials (i.e. username/password). The name of the property must match the relevant Solr config property name.- See Also:
- Constant Field Values
-
SYS_PROP_BASIC_AUTH_CREDENTIALS
public static final String SYS_PROP_BASIC_AUTH_CREDENTIALS
Deprecated.A system property to configure the Basic auth credentials via a java system property. Since this will expose the password on the command-line, it is not very secure. But this mechanism is added for backwards compatibility.- See Also:
- Constant Field Values
-
-
Method Detail
-
setDefaultSolrParams
public static void setDefaultSolrParams(SolrParams params)
Deprecated.This method enables configuring system wide defaults (apart from using a config file based approach).
-
close
public void close() throws IOExceptionDeprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
setup
public void setup(Http2SolrClient client)
Deprecated.- Specified by:
setupin interfaceHttpClientBuilderFactory
-
setup
public void setup(Http2SolrClient client, String basicAuthUser, String basicAuthPass)
Deprecated.
-
getHttpClientBuilder
public SolrHttpClientBuilder getHttpClientBuilder(SolrHttpClientBuilder builder)
Deprecated.Description copied from interface:HttpClientBuilderFactoryThis method configures the SolrHttpClientBuilder by overriding the configuration of passed SolrHttpClientBuilder or as a new instance.- Specified by:
getHttpClientBuilderin interfaceHttpClientBuilderFactory- Parameters:
builder- The instance of the SolrHttpClientBuilder which should by configured (optional).- Returns:
- the SolrHttpClientBuilder
-
-