Class AbstractBundleProvider
java.lang.Object
org.openehealth.ipf.commons.ihe.fhir.AbstractBundleProvider
- All Implemented Interfaces:
IBundleProvider
- Direct Known Subclasses:
EagerBundleProvider
,LazyBundleProvider
Base class of a
IBundleProvider
delegating to a RequestConsumer
instance-
Constructor Summary
ConstructorDescriptionAbstractBundleProvider
(RequestConsumer consumer, boolean sort, Object payload, Map<String, Object> headers) AbstractBundleProvider
(RequestConsumer consumer, Object payload, Map<String, Object> headers) -
Method Summary
Modifier and TypeMethodDescriptionprotected RequestConsumer
protected Object
getUuid()
protected List<IBaseResource>
obtainResources
(Object payload, Map<String, Object> parameters) <T extends IBaseResource>
voidsortIfApplicable
(List<T> resources) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ca.uhn.fhir.rest.api.server.IBundleProvider
getAllResourceIds, getAllResources, getCurrentPageId, getCurrentPageOffset, getCurrentPageSize, getNextPageId, getPreviousPageId, getResources, getResources, isEmpty, size, sizeOrThrowNpe
-
Constructor Details
-
AbstractBundleProvider
-
AbstractBundleProvider
public AbstractBundleProvider(RequestConsumer consumer, boolean sort, Object payload, Map<String, Object> headers)
-
-
Method Details
-
getPublished
- Specified by:
getPublished
in interfaceIBundleProvider
-
preferredPageSize
- Specified by:
preferredPageSize
in interfaceIBundleProvider
-
obtainResources
-
getConsumer
-
getHeaders
- Returns:
- a copy of the original query parameters
-
getPayload
-
getUuid
- Specified by:
getUuid
in interfaceIBundleProvider
-
sortIfApplicable
-