Package org.hl7.fhir.dstu3.utils.client
Class ResourceAddress
java.lang.Object
org.hl7.fhir.dstu3.utils.client.ResourceAddress
Helper class to manage FHIR Resource URIs
- Author:
- Claude Nanjo
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static URI
appendHttpParameter
(URI basePath, String httpParameterName, String httpParameterValue) static URI
appendHttpParameters
(URI basePath, Map<String, String> parameters) static URI
appendQueryStringToUri
(URI uri, String parameterName, String parameterValue) static URI
buildAbsoluteURI
(String absoluteURI) static URI
buildEndpointUriFromString
(String endpointPath) static String
buildRelativePathFromReference
(Resource resource) static String
buildRelativePathFromReference
(Resource resource, String id) static String
buildRelativePathFromResourceType
(ResourceType resourceType) static String
buildRelativePathFromResourceType
(ResourceType resourceType, String id) static String
getCalendarDateInIsoTimeFormat
(Calendar calendar) getHistoryParameters
(Object since, int count) nameForClass
(Class<T> resourceClass) parseCreateLocation
(String locationResponseHeader) For now, assume this type of location header structure.resolveDeleteTagsForResourceVersion
(Class<T> resourceClass, String id, String version) resolveGetAllTagsForResourceType
(Class<T> resourceClass) resolveGetHistoryForAllResources
(int count) resolveGetHistoryForAllResources
(Calendar since, int count) resolveGetHistoryForAllResources
(Date since, int count) resolveGetHistoryForResourceId
(Class<T> resourceClass, String id, int count) resolveGetHistoryForResourceId
(Class<T> resourceClass, String id, Calendar since, int count) resolveGetHistoryForResourceId
(Class<T> resourceClass, String id, Date since, int count) resolveGetHistoryForResourceType
(Class<T> resourceClass, int count) resolveGetHistoryForResourceType
(Class<T> resourceClass, Object since, int count) resolveGetHistoryForResourceType
(Class<T> resourceClass, Calendar since, int count) resolveGetHistoryForResourceType
(Class<T> resourceClass, Date since, int count) resolveGetHistoryUriForResourceId
(Class<T> resourceClass, String id, Object since, int count) resolveGetTagsForReference
(Class<T> resourceClass, String id) resolveGetTagsForResourceVersion
(Class<T> resourceClass, String id, String version) resolveGetUriFromResourceClass
(Class<T> resourceClass) resolveGetUriFromResourceClassAndCanonical
(Class<T> resourceClass, String canonicalUrl) resolveGetUriFromResourceClassAndId
(Class<T> resourceClass, String id) resolveGetUriFromResourceClassAndIdAndVersion
(Class<T> resourceClass, String id, String version) resolveMetadataUri
(boolean quick) resolveOperationUri
(Class<T> resourceClass, String opName) resolveOperationURLFromClass
(Class<T> resourceClass, String name, String parameters) resolveSearchUri
(Class<T> resourceClass, Map<String, String> parameters) resolveValidateUri
(Class<T> resourceClass, String id)
-
Field Details
-
REGEX_ID_WITH_HISTORY
- See Also:
-
-
Constructor Details
-
ResourceAddress
- Throws:
URISyntaxException
-
ResourceAddress
-
-
Method Details
-
getBaseServiceUri
-
resolveOperationURLFromClass
-
resolveSearchUri
-
resolveOperationUri
-
resolveOperationUri
-
resolveValidateUri
-
resolveGetUriFromResourceClass
-
resolveGetUriFromResourceClassAndId
public <T extends Resource> URI resolveGetUriFromResourceClassAndId(Class<T> resourceClass, String id) -
resolveGetUriFromResourceClassAndIdAndVersion
-
resolveGetUriFromResourceClassAndCanonical
public <T extends Resource> URI resolveGetUriFromResourceClassAndCanonical(Class<T> resourceClass, String canonicalUrl) -
resolveGetHistoryForAllResources
-
resolveGetHistoryForResourceId
public <T extends Resource> URI resolveGetHistoryForResourceId(Class<T> resourceClass, String id, int count) -
resolveGetHistoryUriForResourceId
-
resolveGetHistoryForResourceType
-
resolveGetHistoryForResourceType
public <T extends Resource> URI resolveGetHistoryForResourceType(Class<T> resourceClass, Object since, int count) -
resolveGetHistoryForAllResources
-
resolveGetHistoryForAllResources
-
getHistoryParameters
-
resolveGetHistoryForResourceId
-
resolveGetHistoryForResourceId
-
resolveGetHistoryForResourceType
public <T extends Resource> URI resolveGetHistoryForResourceType(Class<T> resourceClass, Calendar since, int count) -
resolveGetHistoryForResourceType
public <T extends Resource> URI resolveGetHistoryForResourceType(Class<T> resourceClass, Date since, int count) -
resolveGetAllTags
-
resolveGetAllTagsForResourceType
-
resolveGetTagsForReference
-
resolveGetTagsForResourceVersion
-
resolveDeleteTagsForResourceVersion
-
nameForClass
-
resolveMetadataUri
-
resolveMetadataTxCaps
-
parseCreateLocation
public static ResourceAddress.ResourceVersionedIdentifier parseCreateLocation(String locationResponseHeader) For now, assume this type of location header structure. Generalize later: http://hl7connect.healthintersections.com.au/svc/fhir/318/_history/1 -
buildAbsoluteURI
-
appendForwardSlashToPath
-
buildEndpointUriFromString
-
appendQueryStringToUri
-
buildRelativePathFromResourceType
-
buildRelativePathFromResourceType
-
buildRelativePathFromReference
-
buildRelativePathFromReference
-
getCalendarDateInIsoTimeFormat
-
appendHttpParameter
public static URI appendHttpParameter(URI basePath, String httpParameterName, String httpParameterValue) -
appendHttpParameters
-