Class ModifiedKrb5HttpClientBuilder

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String LOGIN_CONFIG_PROP  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      org.apache.solr.client.solrj.impl.SolrHttpClientBuilder getBuilder()  
      org.apache.solr.client.solrj.impl.SolrHttpClientBuilder getBuilder​(org.apache.solr.client.solrj.impl.SolrHttpClientBuilder builder)  
      org.apache.solr.client.solrj.impl.SolrHttpClientBuilder getHttpClientBuilder​(org.apache.solr.client.solrj.impl.SolrHttpClientBuilder builder)
      This method configures the SolrHttpClientBuilder by overriding the configuration of passed SolrHttpClientBuilder or as a new instance.
      static void regenerateJaasConfiguration()
      The jaasConfig is static, which makes it problematic for testing in the same jvm.
      void setup​(ModifiedHttp2SolrClient http2Client)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOGIN_CONFIG_PROP

        public static final java.lang.String LOGIN_CONFIG_PROP
        See Also:
        Constant Field Values
    • Constructor Detail

      • ModifiedKrb5HttpClientBuilder

        public ModifiedKrb5HttpClientBuilder()
    • Method Detail

      • regenerateJaasConfiguration

        public static void regenerateJaasConfiguration()
        The jaasConfig is static, which makes it problematic for testing in the same jvm. Call this function to regenerate the static config (this is not thread safe). Note: only used for tests
      • getBuilder

        public org.apache.solr.client.solrj.impl.SolrHttpClientBuilder getBuilder()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • getHttpClientBuilder

        public org.apache.solr.client.solrj.impl.SolrHttpClientBuilder getHttpClientBuilder​(org.apache.solr.client.solrj.impl.SolrHttpClientBuilder builder)
        Description copied from interface: ModifiedHttpClientBuilderFactory
        This method configures the SolrHttpClientBuilder by overriding the configuration of passed SolrHttpClientBuilder or as a new instance.
        Specified by:
        getHttpClientBuilder in interface ModifiedHttpClientBuilderFactory
        Parameters:
        builder - The instance of the SolrHttpClientBuilder which should by configured (optional).
        Returns:
        the SolrHttpClientBuilder
      • getBuilder

        public org.apache.solr.client.solrj.impl.SolrHttpClientBuilder getBuilder​(org.apache.solr.client.solrj.impl.SolrHttpClientBuilder builder)