Class BroadleafSolrProperties.ServerProperties

    • Constructor Detail

      • ServerProperties

        public ServerProperties()
    • Method Detail

      • isSuppressSolrClientConnection

        public boolean isSuppressSolrClientConnection()
        Whether or not the solr client automatic connection at startup should be suppressed. Default is false.
      • getHost

        public String getHost()
        The host URL to connect to the Solr Server.

        If this is a Solr Cloud implementation, this should be a comma separated list of ZK nodes.

        Ignored if embedded is true.

        Returns:
        The host URL to connect to the Solr Server
      • getChroot

        public String getChroot()
        The Zookeeper chroot, which represents the root path to the Zookeeper virtual file system for SolrCloud configuration.
        Returns:
        The Zookeeper chroot
      • getUserName

        public String getUserName()
        Optional user name to use for BasicAuth with Solr. Note that this user must have permissions for all access that is expected by the application using this lib. Query, write, admin, etc. are all types of access that can be granted. See additional Solr documentation related to Basic Authentication and other security concerns.
        Returns:
        Optional user name to use for BasicAuth with Solr
      • getPassword

        public String getPassword()
        Optional password to use for Basic Authentication along with the userName field for Solr.
        Returns:
        Optional password to use for BasicAuth with Solr
      • setSuppressSolrClientConnection

        public void setSuppressSolrClientConnection​(boolean suppressSolrClientConnection)
        Whether or not the solr client automatic connection at startup should be suppressed. Default is false.
      • setHost

        public void setHost​(String host)
        The host URL to connect to the Solr Server.

        If this is a Solr Cloud implementation, this should be a comma separated list of ZK nodes.

        Ignored if embedded is true.

        Parameters:
        host - The host URL to connect to the Solr Server
      • setChroot

        public void setChroot​(String chroot)
        The Zookeeper chroot, which represents the root path to the Zookeeper virtual file system for SolrCloud configuration.
        Parameters:
        chroot - The Zookeeper chroot
      • setUserName

        public void setUserName​(String userName)
        Optional user name to use for BasicAuth with Solr. Note that this user must have permissions for all access that is expected by the application using this lib. Query, write, admin, etc. are all types of access that can be granted. See additional Solr documentation related to Basic Authentication and other security concerns.
        Parameters:
        userName - Optional user name to use for BasicAuth with Solr
      • setPassword

        public void setPassword​(String password)
        Optional password to use for Basic Authentication along with the userName field for Solr.
        Parameters:
        password - Optional password to use for BasicAuth with Solr
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object