All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jccworld.personamockserver.responder.RouteResponder Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 2.0
Show newest version
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