com.jccworld.personamockserver.responder.RouteResponder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of persona-mock-server Show documentation
Show all versions of persona-mock-server Show documentation
A tool to run a basic server that provides mock answers based on personas. I.e. logged out, logged in as Bob, logged in as Jim.
Allows full customisation over response, such as headers or logic based responses.
Provides consistent and reliable responses everytime.
package com.jccworld.personamockserver.responder;
import com.jccworld.personamockserver.RouteException;
import spark.Request;
import spark.Response;
/**
* @author johncrossley
* @see https://github.com/JohnCrossley/PersonaMockServer
*/
public interface RouteResponder {
String getHttpPath();
void run(final Request request, final Response response) throws RouteException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy