public class Hal extends Object
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_HAL_JSON |
static javax.ws.rs.core.MediaType |
APPLICATION_HAL_JSON_TYPE |
protected Map<Class<?>,HalLinkResolver> |
halLinkResolvers |
protected Map<Class<?>,Cache> |
halRelationCaches |
static Hal |
instance |
Constructor and Description |
---|
Hal() |
Modifier and Type | Method and Description |
---|---|
HalLinker |
createLinker(HalResource<?> resource) |
void |
destroyHalRelationCaches() |
Cache |
getHalRelationCache(Class<?> resourceClass) |
static Hal |
getInstance() |
HalLinkResolver |
getLinkResolver(Class<?> resourceClass) |
void |
registerHalRelationCache(Class<?> entityClass,
Cache cache) |
public static final String APPLICATION_HAL_JSON
public static final javax.ws.rs.core.MediaType APPLICATION_HAL_JSON_TYPE
public static Hal instance
protected Map<Class<?>,HalLinkResolver> halLinkResolvers
public static Hal getInstance()
public HalLinker createLinker(HalResource<?> resource)
public HalLinkResolver getLinkResolver(Class<?> resourceClass)
public void destroyHalRelationCaches()
Copyright © 2018. All rights reserved.