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

io.searchbox.indices.template.TemplateAction Maven / Gradle / Ivy

There is a newer version: 6.3.1
Show newest version
package io.searchbox.indices.template;

import io.searchbox.action.GenericResultAbstractAction;

/**
 * @author cihat keser
 */
public abstract class TemplateAction extends GenericResultAbstractAction {

    protected String templateName;

    protected TemplateAction(Builder builder) {
        super(builder);
        templateName = builder.template;
    }

    @Override
    protected String buildURI() {
        StringBuilder sb = new StringBuilder("_template/");
        sb.append(templateName);
        return sb.toString();
    }

    protected abstract static class Builder extends GenericResultAbstractAction.Builder {
        protected String template;

        public Builder(String template) {
            this.template = template;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy