![JAR search and dependency download from the Maven repository](/logo.png)
com.van.logging.solr.SolrConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appender-core Show documentation
Show all versions of appender-core Show documentation
Core functionality to send content to various channels
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