io.vertx.up.uca.cosmic.DeleteRotator Maven / Gradle / Ivy
package io.vertx.up.uca.cosmic;
import io.vertx.core.json.JsonObject;
import io.vertx.up.commune.config.Integration;
import io.vertx.up.commune.config.IntegrationRequest;
import org.apache.http.client.methods.HttpDelete;
public class DeleteRotator extends AbstractRotator {
DeleteRotator(final Integration integration) {
super(integration);
}
@Override
public String request(final IntegrationRequest request, final JsonObject params) {
final HttpDelete httpDelete = new HttpDelete(this.configPath(request, params));
this.logger().info(Message.HTTP_REQUEST, request.getPath(), request.getMethod(), params);
return this.sendUrl(httpDelete, request.getHeaders());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy