All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.van.logging.solr.SolrConfiguration Maven / Gradle / Ivy

There is a newer version: 5.5.0
Show newest version
package com.van.logging.solr;

import java.net.MalformedURLException;
import java.net.URL;

/**
 * Solr configuration
 *
 * @author vly
 *
 */
public class SolrConfiguration {
    private URL url;

    public URL getUrl() {
        return url;
    }

    public void setUrl(String solrUrl) {
        if ((null != solrUrl) && (solrUrl.length() > 0)) {
            try {
                this.url = new URL(solrUrl);
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
        }
    }

    @Override
    public String toString() {
        return String.format("SolrConfiguration: %s", url);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy