org.mockserver.mappers.ExpectationMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockserver-core Show documentation
Show all versions of mockserver-core Show documentation
Functionality used by all MockServer modules for matching and expectations
package org.mockserver.mappers;
import org.mockserver.matchers.HttpRequestMatcher;
import org.mockserver.model.HttpRequest;
/**
* @author jamesdbloom
*/
public class ExpectationMapper {
public HttpRequestMatcher transformsToMatcher(HttpRequest httpRequest) {
return new HttpRequestMatcher()
.withPath(httpRequest.getPath())
.withBody(httpRequest.getBody())
.withHeaders(httpRequest.getHeaders())
.withCookies(httpRequest.getCookies())
.withParameters(httpRequest.getParameters());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy