public interface IRestfulClient
| Modifier and Type | Method and Description |
|---|---|
<T extends IBaseResource> |
fetchResourceFromUrl(Class<T> theResourceType,
String theUrl)
Retrieve the contents at the given URL and parse them as a resource.
|
EncodingEnum |
getEncoding()
Returns the encoding that will be used on requests.
|
FhirContext |
getFhirContext()
Returns the FHIR context associated with this client
|
IHttpClient |
getHttpClient()
Do not call this method in client code.
|
IInterceptorService |
getInterceptorService()
Sets the interfceptor service used by this client
|
String |
getServerBase()
Base URL for the server, with no trailing "/"
|
void |
registerInterceptor(IClientInterceptor theInterceptor)
Deprecated.
Use
getInterceptorService() to access the list of inteerceptors, register them, and unregister them |
void |
setEncoding(EncodingEnum theEncoding)
Specifies that the client should use the given encoding to do its
queries.
|
void |
setFormatParamStyle(RequestFormatParamStyleEnum theRequestFormatParamStyle)
Configures what style of _format parameter should be used in requests
|
void |
setInterceptorService(IInterceptorService theInterceptorService)
Sets the interfceptor service used by this client
|
void |
setPrettyPrint(Boolean thePrettyPrint)
Specifies that the client should request that the server respond with "pretty printing"
enabled.
|
void |
setSummary(SummaryEnum theSummary)
If not set to
null, specifies a value for the _summary parameter
to be applied globally on this client. |
void |
unregisterInterceptor(IClientInterceptor theInterceptor)
Deprecated.
Use
getInterceptorService() to access the list of inteerceptors, register them, and unregister them |
IInterceptorService getInterceptorService()
void setInterceptorService(@Nonnull IInterceptorService theInterceptorService)
<T extends IBaseResource> T fetchResourceFromUrl(Class<T> theResourceType, String theUrl)
theResourceType - The resource type to parsetheUrl - The URL to loadEncodingEnum getEncoding()
null, which means the client will not
explicitly request an encoding. (This is standard behaviour according to the FHIR specification)void setEncoding(EncodingEnum theEncoding)
theEncoding - The encoding to use in the request, or null not specify
an encoding (which generally implies the use of XML). The default is null.FhirContext getFhirContext()
IHttpClient getHttpClient()
String getServerBase()
@Deprecated void registerInterceptor(IClientInterceptor theInterceptor)
getInterceptorService() to access the list of inteerceptors, register them, and unregister themvoid setPrettyPrint(Boolean thePrettyPrint)
thePrettyPrint - The pretty print flag to use in the request (default is false)void setSummary(SummaryEnum theSummary)
null, specifies a value for the _summary parameter
to be applied globally on this client.@Deprecated void unregisterInterceptor(IClientInterceptor theInterceptor)
getInterceptorService() to access the list of inteerceptors, register them, and unregister themregisterInterceptor(IClientInterceptor)void setFormatParamStyle(RequestFormatParamStyleEnum theRequestFormatParamStyle)
Copyright © 2014–2019 University Health Network. All rights reserved.