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