/** * Instantiates a new rest get mapping action. * * @param settings the settings * @param client the client * @param controller the controller */ @Inject public RestGetMappingAction(Settings settings, Client client, RestController controller) { super(settings, client); controller.registerHandler(GET, "/_mapping", this); controller.registerHandler(GET, "/{index}/_mapping", this); controller.registerHandler(GET, "/{index}/{type}/_mapping", this); }
/** * Instantiates a new rest percolate action. * * @param settings the settings * @param client the client * @param controller the controller */ @Inject public RestPercolateAction(Settings settings, Client client, RestController controller) { super(settings, client); controller.registerHandler(Method.GET, "/{index}/{type}/_percolate", this); controller.registerHandler(Method.POST, "/{index}/{type}/_percolate", this); }