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

de.tblsoft.solr.pipeline.bean.SolrUrl Maven / Gradle / Ivy

The newest version!
package de.tblsoft.solr.pipeline.bean;

import java.util.List;
import java.util.Map;

/**
 * Created by tblsoft on 23.07.17.
 */
public class SolrUrl {


    public SolrUrl(Map properties) {
        this(properties, null);
    }

    public SolrUrl(Map properties, String key) {
        if(key == null){
            key = "solrUrl";
        }
        Map solrUrl = (Map) properties.get(key);
        this.baseUrl = (String) solrUrl.get("baseUrl");
        this.coreName = (String) solrUrl.get("coreName");
        this.handler = (String) solrUrl.get("handler");
        this.query = (List>) solrUrl.get("query");

    }

    private String baseUrl;

    private String coreName;

    private String handler;

    private List> query;

    public String getBaseUrl() {
        return baseUrl;
    }

    public void setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
    }

    public String getCoreName() {
        return coreName;
    }

    public void setCoreName(String coreName) {
        this.coreName = coreName;
    }

    public String getHandler() {
        return handler;
    }

    public void setHandler(String handler) {
        this.handler = handler;
    }

    public List> getQuery() {
        return query;
    }

    public void setQuery(List> query) {
        this.query = query;
    }

    public String getSolrClientBaseUrl() {
        return this.baseUrl + "/" + this.coreName;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy