Package | Description |
---|---|
org.mockserver.client | |
org.mockserver.mock | |
org.mockserver.mock.action | |
org.mockserver.model | |
org.mockserver.serialization.java | |
org.mockserver.serialization.model |
Modifier and Type | Method and Description |
---|---|
void |
ForwardChainExpectation.forward(HttpTemplate httpTemplate)
Evaluate Velocity or JavaScript template to generate
request to forward when expectation is matched
|
void |
ForwardChainExpectation.respond(HttpTemplate httpTemplate)
Evaluate Velocity or JavaScript template to generate response
to return when expectation is matched
|
Modifier and Type | Method and Description |
---|---|
HttpTemplate |
Expectation.getHttpForwardTemplate() |
HttpTemplate |
Expectation.getHttpResponseTemplate() |
Modifier and Type | Method and Description |
---|---|
Expectation |
Expectation.thenForward(HttpTemplate httpTemplate) |
Expectation |
Expectation.thenRespond(HttpTemplate httpTemplate) |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
HttpResponseTemplateActionHandler.handle(HttpTemplate httpTemplate,
HttpRequest httpRequest) |
HttpForwardActionResult |
HttpForwardTemplateActionHandler.handle(HttpTemplate httpTemplate,
HttpRequest originalRequest) |
Modifier and Type | Method and Description |
---|---|
HttpTemplate |
HttpTemplate.shallowClone() |
static HttpTemplate |
HttpTemplate.template(HttpTemplate.TemplateType type)
Static builder to create an template for responding or forwarding requests.
|
static HttpTemplate |
HttpTemplate.template(HttpTemplate.TemplateType type,
String template)
Static builder to create an template for responding or forwarding requests.
|
HttpTemplate |
HttpTemplate.withTemplate(String template) |
Modifier and Type | Method and Description |
---|---|
String |
HttpTemplateToJavaSerializer.serialize(int numberOfSpacesToIndent,
HttpTemplate httpTemplate) |
Modifier and Type | Method and Description |
---|---|
HttpTemplate |
HttpTemplateDTO.buildObject() |
Constructor and Description |
---|
HttpTemplateDTO(HttpTemplate httpTemplate) |
Copyright © 2020. All rights reserved.