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

com.jccworld.personamockserver.challenge.DataCustomResponse 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.challenge;

import com.jccworld.personamockserver.route.config.Config;

/**
 * @author johncrossley
 * @see https://github.com/JohnCrossley/PersonaMockServer
 */
public class DataCustomResponse implements CustomResponse {
    private final Config config;
    private final String responseBody;

    public DataCustomResponse(final Config config, final String responseBody) {
        this.config = config;
        this.responseBody = responseBody;
    }

    public DataCustomResponse() {
        this.config = null;
        this.responseBody = null;
    }

    public Config getConfig() {
        return config;
    }

    public String getResponseBody() {
        return responseBody;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy