Package ca.uhn.fhir.util
Class CanonicalBundleEntry
java.lang.Object
ca.uhn.fhir.util.CanonicalBundleEntry
FHIR version independent representation of a Bundle Entry. This class can hold
Bundle Entry data from any FHIR version (DSTU3+) and convert it back to the
appropriate Bundle Entry type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CanonicalBundleEntryfromBundleEntry(FhirContext theFhirContext, IBaseBackboneElement theEntry) Factory method to create a CanonicalBundleEntry from a Bundle EntrygetLinks()voidsetFullUrl(String theFullUrl) voidvoidsetRequestIfMatch(String theRequestIfMatch) voidsetRequestIfModifiedSince(String theRequestIfModifiedSince) voidsetRequestIfNoneExist(String theRequestIfNoneExist) voidsetRequestIfNoneMatch(String theRequestIfNoneMatch) voidsetRequestMethod(String theRequestMethod) voidsetRequestUrl(String theRequestUrl) voidsetResource(IBaseResource theResource) voidsetResponseEtag(String theResponseEtag) voidsetResponseLastModified(String theResponseLastModified) voidsetResponseLocation(String theResponseLocation) voidsetResponseStatus(String theResponseStatus) voidsetSearchMode(String theSearchMode) voidsetSearchScore(String theSearchScore) <T extends IBase>
TtoBundleEntry(FhirContext theFhirContext, Class<T> theBundleEntryComponentClass) Convert this CanonicalBundleEntry back to a Bundle Entry of the specified type
-
Constructor Details
-
CanonicalBundleEntry
public CanonicalBundleEntry()
-
-
Method Details
-
getFullUrl
-
setFullUrl
-
getResource
-
setResource
-
getRequestMethod
-
setRequestMethod
-
getRequestUrl
-
setRequestUrl
-
getRequestIfNoneMatch
-
setRequestIfNoneMatch
-
getRequestIfModifiedSince
-
setRequestIfModifiedSince
-
getRequestIfMatch
-
setRequestIfMatch
-
getRequestIfNoneExist
-
setRequestIfNoneExist
-
getResponseStatus
-
setResponseStatus
-
getResponseLocation
-
setResponseLocation
-
getResponseEtag
-
setResponseEtag
-
getResponseLastModified
-
setResponseLastModified
-
getSearchMode
-
setSearchMode
-
getSearchScore
-
setSearchScore
-
getLinks
-
setLinks
-
fromBundleEntry
public static CanonicalBundleEntry fromBundleEntry(FhirContext theFhirContext, IBaseBackboneElement theEntry) Factory method to create a CanonicalBundleEntry from a Bundle Entry- Parameters:
theFhirContext- The FHIR contexttheEntry- The Bundle Entry to convert- Returns:
- A new CanonicalBundleEntry instance
-
toBundleEntry
public <T extends IBase> T toBundleEntry(FhirContext theFhirContext, Class<T> theBundleEntryComponentClass) Convert this CanonicalBundleEntry back to a Bundle Entry of the specified type- Parameters:
theFhirContext- The FHIR contexttheBundleEntryComponentClass- The target Bundle Entry class- Returns:
- A new Bundle Entry instance
-