
Package org.hl7.fhir.dstu2.utils.client
Class FHIRToolingClient
java.lang.Object
org.hl7.fhir.utilities.FHIRBaseToolingClient
org.hl7.fhir.dstu2.utils.client.FHIRToolingClient
Deprecated.
Very Simple RESTful client. This is purely for use in the standalone tools
jar packages. It doesn't support many features, only what the tools need.
To use, initialize class and set base service URI as follows:
FHIRSimpleClient fhirClient = new FHIRSimpleClient();
fhirClient.initialize("http://my.fhir.domain/myServiceRoot");
Default Accept and Content-Type headers are application/xml+fhir and
application/j+fhir.
These can be changed by invoking the following setter functions:
setPreferredResourceFormat()
setPreferredFeedFormat()
TODO Review all sad paths.- Author:
- Claude Nanjo
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.Fields inherited from class org.hl7.fhir.utilities.FHIRBaseToolingClient
timeoutEntry, timeoutExpand, timeoutLong, timeoutNormal, timeoutOperation, versionInMimeTypes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexpandValueset
(ValueSet source, Parameters expParams) Deprecated.Deprecated.Deprecated.<T extends Resource>
TgetCanonical
(Class<T> resourceClass, String canonicalURL) Deprecated.protected ClientUtils
Deprecated.Deprecated.getConformanceStatement
(boolean useOptionsVerb) Deprecated.Deprecated.getConformanceStatementQuick
(boolean useOptionsVerb) Deprecated.org.hl7.fhir.utilities.ToolingClientLogger
Deprecated.int
Deprecated.Deprecated.int
Deprecated.Deprecated.Deprecated.int
Deprecated.int
Deprecated.Deprecated.protected void
handleException
(String message, Exception e) Deprecated.Helper method to prevent nesting of previously thrown EFhirClientExceptions.void
initialize
(String baseServiceUrl) Deprecated.initializeClosure
(String name) Deprecated.protected boolean
Deprecated.Helper method to determine whether desired resource representation is Json or XML.lookupCode
(Map<String, String> params) Deprecated.Deprecated.<T extends Resource>
ParametersoperateType
(Class<T> resourceClass, String name, Parameters params) Deprecated.<T extends Resource>
TDeprecated.Deprecated.void
setAcceptLanguage
(String lang) Deprecated.void
setContentLanguage
(String lang) Deprecated.void
setLogger
(org.hl7.fhir.utilities.ToolingClientLogger logger) Deprecated.void
setMaximumRecordCount
(int maxResultSetSize) Deprecated.void
setPreferredResourceFormat
(ResourceFormat resourceFormat) Deprecated.void
setRetryCount
(int retryCount) Deprecated.void
setTimeout
(int timeout) Deprecated.void
setUserAgent
(String userAgent) Deprecated.transaction
(Bundle batch) Deprecated.Deprecated.<T extends Resource>
TDeprecated.Deprecated.updateClosure
(String name, Coding coding) Deprecated.<T extends Resource>
OperationOutcomeDeprecated.<T extends Resource>
TDeprecated.Methods inherited from class org.hl7.fhir.utilities.FHIRBaseToolingClient
getTimeoutEntry, getTimeoutExpand, getTimeoutLong, getTimeoutNormal, getTimeoutOperation, isVersionInMimeTypes, setTimeoutEntry, setTimeoutExpand, setTimeoutFactor, setTimeoutLong, setTimeoutNormal, setTimeoutOperation, setVersionInMimeTypes, withVer
-
Field Details
-
DATETIME_FORMAT
Deprecated.- See Also:
-
DATE_FORMAT
Deprecated.- See Also:
-
hostKey
Deprecated.- See Also:
-
portKey
Deprecated.- See Also:
-
-
Constructor Details
-
FHIRToolingClient
Deprecated.- Throws:
URISyntaxException
-
-
Method Details
-
getClientUtils
Deprecated. -
initialize
Deprecated.- Throws:
URISyntaxException
-
getPreferredResourceFormat
Deprecated. -
setPreferredResourceFormat
Deprecated. -
getMaximumRecordCount
Deprecated. -
setMaximumRecordCount
Deprecated. -
getConformanceStatement
Deprecated.- Throws:
EFhirClientException
-
getConformanceStatement
Deprecated. -
getConformanceStatementQuick
Deprecated.- Throws:
EFhirClientException
-
getConformanceStatementQuick
Deprecated. -
read
Deprecated. -
vread
Deprecated. -
getCanonical
Deprecated. -
update
Deprecated. -
update
Deprecated. -
operateType
public <T extends Resource> Parameters operateType(Class<T> resourceClass, String name, Parameters params) Deprecated. -
transaction
Deprecated. -
validate
public <T extends Resource> OperationOutcome validate(Class<T> resourceClass, T resource, String id) Deprecated. -
handleException
Deprecated.Helper method to prevent nesting of previously thrown EFhirClientExceptions. If the e param is an instance of EFhirClientException, it will be rethrown. Otherwise, a new EFhirClientException will be thrown with e as the cause.- Parameters:
message
- The EFhirClientException message.e
- The exception.- Throws:
EFhirClientException
- representing the exception.
-
isJson
Deprecated.Helper method to determine whether desired resource representation is Json or XML.- Parameters:
format
- the format to check- Returns:
- true if JSON, false if XML
-
fetchFeed
Deprecated. -
lookupCode
Deprecated. -
lookupCode
Deprecated. -
translate
Deprecated. -
expandValueset
Deprecated. -
getAddress
Deprecated. -
initializeClosure
Deprecated. -
updateClosure
Deprecated. -
getTimeout
Deprecated. -
setTimeout
Deprecated. -
getTerminologyCapabilities
Deprecated. -
getLogger
Deprecated. -
setLogger
Deprecated. -
getRetryCount
Deprecated. -
setRetryCount
Deprecated. -
getUserAgent
Deprecated. -
setUserAgent
Deprecated. -
getServerVersion
Deprecated. -
setContentLanguage
Deprecated. -
setAcceptLanguage
Deprecated. -
getUseCount
Deprecated. -
search
Deprecated.
-