Package com.helixframework.api.contract
Class HalLinks.Builder
java.lang.Object
com.helixframework.api.contract.HalLinks.Builder
- Enclosing class:
- HalLinks
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns a new immutableHalLinksinstance.Adds a link with the given relation.Convenience overload for directly creating a link by href.link(String rel, String href, HalLink.HttpMethod method) Convenience overload for href + method.Convenience overload for href + method.
-
Method Details
-
link
Adds a link with the given relation.- Parameters:
rel- the link relation (e.g., "self", "next", "update")link- theHalLinkinstance- Returns:
- this builder instance
-
link
Convenience overload for directly creating a link by href.- Parameters:
rel- the link relationhref- the link href- Returns:
- this builder instance
-
link
Convenience overload for href + method.- Parameters:
rel- the link relationhref- the link hrefmethod- HTTP method- Returns:
- this builder instance
-
link
Convenience overload for href + method.- Parameters:
rel- the link relationhref- the link hrefmethod- HTTP method- Returns:
- this builder instance
-
build
Builds and returns a new immutableHalLinksinstance.- Returns:
- a new HalLinks instance
-