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(org.springframework.http.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(org.springframework.http.HttpMethod httpMethod) |
public static final String DEFAULT_KEY
public static HalFormsTemplate forMethod(org.springframework.http.HttpMethod httpMethod)
public HalFormsTemplate andProperty(HalFormsProperty property)
HalFormsTemplate
with the given HalFormsProperty
added.property
- must not be null.public HalFormsTemplate andContentType(org.springframework.http.MediaType mediaType)
HalFormsTemplate
with the given MediaType
added as content type.mediaType
- must not be null.Copyright © 2012-2019–2019 Pivotal, Inc.. All rights reserved.