com.github.tomakehurst.wiremock.admin.RemoveServeEventTask Maven / Gradle / Ivy
package com.github.tomakehurst.wiremock.admin;
import com.github.tomakehurst.wiremock.admin.model.PathParams;
import com.github.tomakehurst.wiremock.core.Admin;
import com.github.tomakehurst.wiremock.http.Request;
import com.github.tomakehurst.wiremock.http.ResponseDefinition;
import java.util.UUID;
public class RemoveServeEventTask implements AdminTask {
@Override
public ResponseDefinition execute(Admin admin, Request request, PathParams pathParams) {
String idString = pathParams.get("id");
UUID id = UUID.fromString(idString);
admin.removeServeEvent(id);
return ResponseDefinition.okEmptyJson();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy