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 |
---|---|
String |
getTemplate() |
HttpTemplate.TemplateType |
getTemplateType() |
Action.Type |
getType() |
void |
setActionType(Action.Type actionType) |
HttpTemplate |
shallowClone() |
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.
|
HttpTemplate |
withTemplate(String template) |
toString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode
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 setActionType(Action.Type actionType)
public Action.Type getType()
getType
in class Action<HttpTemplate>
public HttpTemplate shallowClone()
Copyright © 2020. All rights reserved.