io.searchbox.action.SingleResultAbstractDocumentTargetedAction Maven / Gradle / Ivy
package io.searchbox.action;
import com.google.gson.Gson;
import io.searchbox.core.DocumentResult;
/**
* @author Bartosz Polnik
*/
public abstract class SingleResultAbstractDocumentTargetedAction extends AbstractDocumentTargetedAction {
public SingleResultAbstractDocumentTargetedAction(Builder builder) {
super(builder);
}
@Override
public DocumentResult createNewElasticSearchResult(String responseBody, int statusCode, String reasonPhrase, Gson gson) {
return createNewElasticSearchResult(new DocumentResult(gson), responseBody, statusCode, reasonPhrase, gson);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy