Package org.camunda.bpm.engine.rest.hal
Class HalRelation
- java.lang.Object
-
- org.camunda.bpm.engine.rest.hal.HalRelation
-
public class HalRelation extends Object
- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected StringrelNamethe name of the relationprotected Class<?>resourceTypethe type of the resource we build a relation to.protected javax.ws.rs.core.UriBuilderuriTemplatethe url template used by the relation to construct links
-
Constructor Summary
Constructors Constructor Description HalRelation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HalRelationbuild(String relName, Class<?> resourceType, javax.ws.rs.core.UriBuilder urlTemplate)Build a relation to a resource.StringgetRelName()Class<?>getResourceType()javax.ws.rs.core.UriBuildergetUriTemplate()
-
-
-
Method Detail
-
build
public static HalRelation build(String relName, Class<?> resourceType, javax.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
public String getRelName()
-
getUriTemplate
public javax.ws.rs.core.UriBuilder getUriTemplate()
-
getResourceType
public Class<?> getResourceType()
-
-