public class LinkUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LINK_HREF |
static String |
LINK_REL |
| Constructor and Description |
|---|
LinkUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List<org.springframework.hateoas.Link> |
filterSelf(List<org.springframework.hateoas.Link> links)
Filters self from the links
|
static org.springframework.hateoas.Link |
getSelf(org.springframework.hateoas.EntityModel<?> model)
Gets the self
|
static org.springframework.hateoas.Link |
getSelf(List<org.springframework.hateoas.Link> links)
Gets the self link
|
static String |
getSelfHref(org.springframework.hateoas.EntityModel<?> model) |
static List<org.springframework.hateoas.Link> |
removeLink(List<org.springframework.hateoas.Link> links,
String name) |
static String |
removeProjectionReference(String href)
Removes the projection reference fron the href ( {?projection}
|
public static final String LINK_REL
public static final String LINK_HREF
public static List<org.springframework.hateoas.Link> filterSelf(List<org.springframework.hateoas.Link> links)
links - a list of the linkspublic static List<org.springframework.hateoas.Link> removeLink(List<org.springframework.hateoas.Link> links, String name)
public static org.springframework.hateoas.Link getSelf(List<org.springframework.hateoas.Link> links)
links - a list of linkspublic static org.springframework.hateoas.Link getSelf(org.springframework.hateoas.EntityModel<?> model)
model - the entitymodelpublic static String getSelfHref(org.springframework.hateoas.EntityModel<?> model)
Copyright © 2019–2020 personify. All rights reserved.