com.github.kristofa.test.http.HttpResponseFileReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mock-http-server Show documentation
Show all versions of mock-http-server Show documentation
Mock and Proxy HTTP Server for testing purposes. Forked from https://github.com/jharlap/mock-http-server
package com.github.kristofa.test.http;
import java.io.File;
/**
* Reads a {@link HttpResponse} from file and reconstructs it.
*
* @see HttpResponseFileWriter
* @author kristof
*/
public interface HttpResponseFileReader {
/**
* Reqds a {@link HttpResponse} that is stored in file(s) and reconstructs it.
*
* @param httpResponseFile File in which all http response properties are stored except entity.
* @param httpResponseEntityFile File in which http response entity is stored. Entity is optional. If given file does not
* exist entity in returned response will be null
.
* @return Initialized Http Response.
*/
HttpResponse read(final File httpResponseFile, final File httpResponseEntityFile);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy