Package io.quarkus.hal
Class HalCollectionWrapper
- java.lang.Object
-
- io.quarkus.hal.HalWrapper
-
- io.quarkus.hal.HalCollectionWrapper
-
public class HalCollectionWrapper extends HalWrapper
The Hal collection wrapper that includes the list of Hal entitiesHalEntityWrapper, the collection name and the Hal links. This type is serialized into Json using: - the JSON-B serializer:HalCollectionWrapperJsonbSerializer- the Jackson serializer:HalCollectionWrapperJacksonSerializer
-
-
Constructor Summary
Constructors Constructor Description HalCollectionWrapper(Collection<HalEntityWrapper> collection, String collectionName, Map<String,HalLink> links)HalCollectionWrapper(Collection<HalEntityWrapper> collection, String collectionName, javax.ws.rs.core.Link... links)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<HalEntityWrapper>getCollection()StringgetCollectionName()-
Methods inherited from class io.quarkus.hal.HalWrapper
addLinks, getLinks
-
-
-
-
Constructor Detail
-
HalCollectionWrapper
public HalCollectionWrapper(Collection<HalEntityWrapper> collection, String collectionName, javax.ws.rs.core.Link... links)
-
HalCollectionWrapper
public HalCollectionWrapper(Collection<HalEntityWrapper> collection, String collectionName, Map<String,HalLink> links)
-
-
Method Detail
-
getCollection
public Collection<HalEntityWrapper> getCollection()
-
getCollectionName
public String getCollectionName()
-
-