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

com.github.kristofa.test.http.HttpRequestFileReader Maven / Gradle / Ivy

Go to download

Mock and Proxy HTTP Server for testing purposes. Forked from https://github.com/jharlap/mock-http-server

There is a newer version: 4.1
Show newest version
package com.github.kristofa.test.http;

import java.io.File;

/**
 * Reads a {@link HttpRequest} from file and reconstructs it.
 * 
 * @see HttpRequestFileWriter
 * @author kristof
 */
interface HttpRequestFileReader {

    /**
     * Reqds a HttpRequest that is stored in file(s) and reconstructs it.
     * 
     * @param httpRequestFile File in which all http request properties are stored except entity.
     * @param httpRequestEntityFile File in which http request entity is stored. Entity is optional. If given file does not
     *            exist entity in returned request will be null.
     * @return Initialized Http Request.
     */
    HttpRequest read(final File httpRequestFile, final File httpRequestEntityFile);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy