Class HalResource<T extends HalResource<?>>

    • Constructor Detail

      • HalResource

        public HalResource()
    • Method Detail

      • addLink

        public void addLink​(String rel,
                            String href)
      • addLink

        public void addLink​(String rel,
                            URI hrefUri)
      • embed

        public T embed​(HalRelation relation,
                       ProcessEngine processEngine)
        Can be used to embed a relation. Embedded all linked resources in the given relation.
        Parameters:
        relation - the relation to embedded
        processEngine - used to resolve the resources
        Returns:
        the resource itself.