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-
Field Summary
Modifier and TypeFieldDescriptionprotected final jakarta.servlet.http.HttpServletResponse
-
Constructor Summary
ConstructorDescriptionAbstractBundleProvider
(RequestConsumer consumer, boolean sort, Object payload, Map<String, Object> headers, jakarta.servlet.http.HttpServletResponse httpServletResponse) AbstractBundleProvider
(RequestConsumer consumer, Object payload, Map<String, Object> headers, jakarta.servlet.http.HttpServletResponse httpServletResponse) -
Method Summary
Modifier and TypeMethodDescriptionprotected RequestConsumer
protected Object
getUuid()
protected List
<IBaseResource> obtainResources
(Object payload, Map<String, Object> inHeaders) <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
-
Field Details
-
httpServletResponse
protected final jakarta.servlet.http.HttpServletResponse httpServletResponse
-
-
Constructor Details
-
AbstractBundleProvider
public AbstractBundleProvider(RequestConsumer consumer, Object payload, Map<String, Object> headers, jakarta.servlet.http.HttpServletResponse httpServletResponse) -
AbstractBundleProvider
public AbstractBundleProvider(RequestConsumer consumer, boolean sort, Object payload, Map<String, Object> headers, jakarta.servlet.http.HttpServletResponse httpServletResponse)
-
-
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
-