public class HttpTemplate extends Action<HttpTemplate>
Modifier and Type | Class and Description |
---|---|
static class |
HttpTemplate.TemplateType |
Action.Direction, Action.Type
Constructor and Description |
---|
HttpTemplate(HttpTemplate.TemplateType type) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getTemplate() |
HttpTemplate.TemplateType |
getTemplateType() |
Action.Type |
getType() |
int |
hashCode() |
static HttpTemplate |
template(HttpTemplate.TemplateType type)
Static builder to create an template for responding or forwarding requests.
|
static HttpTemplate |
template(HttpTemplate.TemplateType type,
String template)
Static builder to create an template for responding or forwarding requests.
|
void |
withActionType(Action.Type actionType) |
HttpTemplate |
withTemplate(String template) |
getDelay, getExpectationId, setExpectationId, withDelay, withDelay
toString
fieldsExcludedFromEqualsAndHashCode
public HttpTemplate(HttpTemplate.TemplateType type)
public static HttpTemplate template(HttpTemplate.TemplateType type)
public static HttpTemplate template(HttpTemplate.TemplateType type, String template)
template
- the template for the response or requestpublic HttpTemplate.TemplateType getTemplateType()
public HttpTemplate withTemplate(String template)
public String getTemplate()
public void withActionType(Action.Type actionType)
public Action.Type getType()
getType
in class Action<HttpTemplate>
public boolean equals(Object o)
equals
in class Action<HttpTemplate>
public int hashCode()
hashCode
in class Action<HttpTemplate>
Copyright © 2022. All rights reserved.