Class HalResourceMatchers
- java.lang.Object
-
- io.wcm.caravan.pipeline.extensions.hal.filter.HalResourceMatchers
-
@ProviderType public final class HalResourceMatchers extends Object
Default HAL resource matchers.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HalResourcePredicate
collection(String relationToMatch)
static HalResourcePredicate
relation(String relationToMatch)
-
-
-
Method Detail
-
relation
public static HalResourcePredicate relation(String relationToMatch)
- Parameters:
relationToMatch
- HAL resource relation- Returns:
- True if resource has given relation
-
collection
public static HalResourcePredicate collection(String relationToMatch)
- Parameters:
relationToMatch
- Relation of theitem
- Returns:
- True if resource is an
item
of the given relation.
-
-