Class FHIRRestSupport
- java.lang.Object
-
- org.linuxforhealth.fhir.server.util.FHIRRestSupport
-
public class FHIRRestSupport extends java.lang.Object
Collection of support and utility methods related to the FHIR REST API.
-
-
Constructor Summary
Constructors Constructor Description FHIRRestSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getEtagValue(int versionId)
Create an ETag header value using the given resource versionIdstatic java.lang.String
getEtagValue(Resource resource)
static java.lang.String
getEtagValueFromLocation(java.net.URI locationURI)
Get the ETag value by extracting the version from the locationURI
-
-
-
Method Detail
-
getEtagValue
public static java.lang.String getEtagValue(Resource resource)
-
getEtagValue
public static java.lang.String getEtagValue(int versionId)
Create an ETag header value using the given resource versionId- Parameters:
versionId
-- Returns:
-
getEtagValueFromLocation
public static java.lang.String getEtagValueFromLocation(java.net.URI locationURI)
Get the ETag value by extracting the version from the locationURI- Parameters:
locationURI
-- Returns:
-
-