io.searchbox.indices.template.TemplateAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jest-common Show documentation
Show all versions of jest-common Show documentation
ElasticSearch Java REST client - shared library package
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