public class HalFormsTemplate extends Object
https://rwcbook.github.io/hal-forms/#_the_code__templates_code_element| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_KEY |
| Modifier and Type | Method and Description |
|---|---|
HalFormsTemplate |
andContentType(MediaType mediaType)
Returns a new
HalFormsTemplate with the given MediaType added as content type. |
HalFormsTemplate |
andProperty(HalFormsProperty property)
Returns a new
HalFormsTemplate with the given HalFormsProperty added. |
static HalFormsTemplate |
forMethod(HttpMethod httpMethod) |
public static final String DEFAULT_KEY
public static HalFormsTemplate forMethod(HttpMethod httpMethod)
public HalFormsTemplate andProperty(HalFormsProperty property)
HalFormsTemplate with the given HalFormsProperty added.property - must not be null.public HalFormsTemplate andContentType(MediaType mediaType)
HalFormsTemplate with the given MediaType added as content type.mediaType - must not be null.Copyright © 2011–2020 Pivotal, Inc.. All rights reserved.