Package ca.uhn.fhir.rest.server.method
Class ResponsePage.ResponsePageBuilder
java.lang.Object
ca.uhn.fhir.rest.server.method.ResponsePage.ResponsePageBuilder
- Enclosing class:
ResponsePage
A builder for constructing ResponsePage objects.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
void
combineWith
(ResponsePage.ResponsePageBuilder theSecondBuilder) Combine this builder with a second buider.setBundleProvider
(IBundleProvider theBundleProvider) setIncludedResourceCount
(int theIncludedResourceCount) setNumToReturn
(int theNumToReturn) setOmittedResourceCount
(int theOmittedResourceCount) setPageSize
(int thePageSize) setResources
(List<org.hl7.fhir.instance.model.api.IBaseResource> theResources) setSearchId
(String theSearchId) setTotalRequestedResourcesFetched
(int theTotalRequestedResourcesFetched)
-
Constructor Details
-
ResponsePageBuilder
public ResponsePageBuilder()
-
-
Method Details
-
setOmittedResourceCount
-
setIncludedResourceCount
-
setNumToReturn
-
setPageSize
-
setBundleProvider
-
setResources
public ResponsePage.ResponsePageBuilder setResources(List<org.hl7.fhir.instance.model.api.IBaseResource> theResources) -
setSearchId
-
setTotalRequestedResourcesFetched
public ResponsePage.ResponsePageBuilder setTotalRequestedResourcesFetched(int theTotalRequestedResourcesFetched) -
combineWith
Combine this builder with a second buider. Useful if a second page is requested, but you do not wish to overwrite the current values. Will not replace searchId, nor IBundleProvider (which should be the exact same for any subsequent searches anyways). Will also not copy pageSize nor numToReturn, as these should be the same for any single search result set.- Parameters:
theSecondBuilder
- - a second builder (cannot be this one)
-
build
-