Class LinkSelectionStrategies
- java.lang.Object
-
- io.wcm.caravan.pipeline.extensions.hal.client.action.LinkSelectionStrategies
-
public final class LinkSelectionStrategies extends Object
Contains common implementations ofLinkSelectionStrategy
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LinkSelectionStrategy
byRelationAndIndex(String relation, int index)
static LinkSelectionStrategy
byRelationAndName(String relation, String name)
-
-
-
Method Detail
-
byRelationAndIndex
public static LinkSelectionStrategy byRelationAndIndex(String relation, int index)
- Parameters:
relation
- too look forindex
- to pick- Returns:
- a strategy that picks the link with the given relation and index
-
byRelationAndName
public static LinkSelectionStrategy byRelationAndName(String relation, String name)
- Parameters:
relation
- too look forname
- of the link to pick- Returns:
- a strategy that picks the first link with the given relation and name
-
-