com.github.tomakehurst.wiremock.admin.tasks.ResetRequestsTask Maven / Gradle / Ivy
package com.github.tomakehurst.wiremock.admin.tasks;
import com.github.tomakehurst.wiremock.admin.AdminTask;
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;
public class ResetRequestsTask implements AdminTask {
@Override
public ResponseDefinition execute(Admin admin, Request request, PathParams pathParams) {
admin.resetRequests();
return ResponseDefinition.okEmptyJson();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy