
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 CanonicalBundleEntry
fromBundleEntry
(FhirContext theFhirContext, IBaseBackboneElement theEntry) Factory method to create a CanonicalBundleEntry from a Bundle EntrygetLinks()
void
setFullUrl
(String theFullUrl) void
void
setRequestIfMatch
(String theRequestIfMatch) void
setRequestIfModifiedSince
(String theRequestIfModifiedSince) void
setRequestIfNoneExist
(String theRequestIfNoneExist) void
setRequestIfNoneMatch
(String theRequestIfNoneMatch) void
setRequestMethod
(String theRequestMethod) void
setRequestUrl
(String theRequestUrl) void
setResource
(IBaseResource theResource) void
setResponseEtag
(String theResponseEtag) void
setResponseLastModified
(String theResponseLastModified) void
setResponseLocation
(String theResponseLocation) void
setResponseStatus
(String theResponseStatus) void
setSearchMode
(String theSearchMode) void
setSearchScore
(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
-