public class HalRelation extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
relName
the name of the relation
|
protected Class<?> |
resourceType
the type of the resource we build a relation to.
|
protected javax.ws.rs.core.UriBuilder |
uriTemplate
the url template used by the relation to construct links
|
| Constructor and Description |
|---|
HalRelation() |
| Modifier and Type | Method and Description |
|---|---|
static HalRelation |
build(String relName,
Class<?> resourceType,
javax.ws.rs.core.UriBuilder urlTemplate)
Build a relation to a resource.
|
String |
getRelName() |
Class<?> |
getResourceType() |
javax.ws.rs.core.UriBuilder |
getUriTemplate() |
protected String relName
protected javax.ws.rs.core.UriBuilder uriTemplate
protected Class<?> resourceType
public static HalRelation build(String relName, Class<?> resourceType, javax.ws.rs.core.UriBuilder urlTemplate)
relName - the name of the relation.resourceType - the type of the resourcepublic String getRelName()
public javax.ws.rs.core.UriBuilder getUriTemplate()
public Class<?> getResourceType()
Copyright © 2018. All rights reserved.