package com.atlassian.bitbucket.test.rest.server.stub.mirror;

import com.atlassian.bitbucket.test.rest.server.stub.StubResponse;
import com.atlassian.bitbucket.test.rest.server.stub.StubServer;
import com.confluex.mock.http.ClientRequest;

import javax.annotation.Nonnull;

/**
 * Responds to a {@link ClientRequest request} for the supplied {@link StubServer stub server}
 */
public interface StubServerResponder<S extends StubServer> {
    @Nonnull
    StubResponse respond(@Nonnull S server, @Nonnull ClientRequest request);
}
