Package org.camunda.bpm.engine.rest.hal
Class HalRelation
java.lang.Object
org.camunda.bpm.engine.rest.hal.HalRelation
- Author:
- Daniel Meyer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HalRelation
Build a relation to a resource.Class<?>
jakarta.ws.rs.core.UriBuilder
-
Field Details
-
relName
the name of the relation -
uriTemplate
protected jakarta.ws.rs.core.UriBuilder uriTemplatethe url template used by the relation to construct links -
resourceType
the type of the resource we build a relation to.
-
-
Constructor Details
-
HalRelation
public HalRelation()
-
-
Method Details
-
build
public static HalRelation build(String relName, Class<?> resourceType, jakarta.ws.rs.core.UriBuilder urlTemplate) Build a relation to a resource.- Parameters:
relName
- the name of the relation.resourceType
- the type of the resource- Returns:
- the relation
-
getRelName
-
getUriTemplate
public jakarta.ws.rs.core.UriBuilder getUriTemplate() -
getResourceType
-