Class AbstractBundleProvider

java.lang.Object
org.openehealth.ipf.commons.ihe.fhir.AbstractBundleProvider
All Implemented Interfaces:
IBundleProvider
Direct Known Subclasses:
EagerBundleProvider, LazyBundleProvider

public abstract class AbstractBundleProvider extends Object implements IBundleProvider
Base class of a IBundleProvider delegating to a RequestConsumer instance
  • 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)
    • AbstractBundleProvider

      protected AbstractBundleProvider(AbstractBundleProvider original, RequestDetails currentRequest)
      Copies a bundle provider and binds the copy to a later request, typically one that asks for another page of a result that has been cached with SpringCachePagingProvider.

      The servlet request and response of the original request are recycled by the servlet container once it has completed, so the copy writes to the response of the current request and gets RequestDetails that describe the original search, but are backed by the current servlet request.

      Parameters:
      original - bundle provider that was created for the original request
      currentRequest - the request that is being processed now
  • Method Details