public class HalConfiguration extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HalConfiguration.RenderSingleLinks
Configuration option how to render single links of a given
LinkRelation. |
| Constructor and Description |
|---|
HalConfiguration()
Creates a new default
HalConfiguration rendering single links as immediate sub-document. |
| Modifier and Type | Method and Description |
|---|---|
HalConfiguration |
withRenderSingleLinksFor(LinkRelation relation,
HalConfiguration.RenderSingleLinks renderSingleLinks)
Configures how to render a single link for a given particular
LinkRelation. |
HalConfiguration |
withRenderSingleLinksFor(String pattern,
HalConfiguration.RenderSingleLinks renderSingleLinks)
Configures how to render a single link for the given link relation pattern, i.e. this can be either a fixed link
relation (like
search), take wildcards to e.g. match links of a given curie (like acme:*) or even
complete URIs (like https://api.acme.com/foo/**). |
public HalConfiguration()
HalConfiguration rendering single links as immediate sub-document.public HalConfiguration withRenderSingleLinksFor(LinkRelation relation, HalConfiguration.RenderSingleLinks renderSingleLinks)
LinkRelation. This will override what has
been configured via #withRenderSingleLinks(RenderSingleLinks) for that particular link relation.relation - must not be null.renderSingleLinks - must not be null.public HalConfiguration withRenderSingleLinksFor(String pattern, HalConfiguration.RenderSingleLinks renderSingleLinks)
search), take wildcards to e.g. match links of a given curie (like acme:*) or even
complete URIs (like https://api.acme.com/foo/**).pattern - must not be null.renderSingleLinks - must not be null.Copyright © 2011–2019 Pivotal, Inc.. All rights reserved.