public class GenericClient extends BaseClient implements IGenericClient
BaseClient.ResourceResponseHandler<T extends IBaseResource>HAPI_CLIENT_KEEPRESPONSES| Constructor and Description |
|---|
GenericClient(FhirContext theContext,
IHttpClient theHttpClient,
String theServerBase,
RestfulClientFactory theFactory)
For now, this is a part of the internal API of HAPI - Use with caution as this method may change!
|
| Modifier and Type | Method and Description |
|---|---|
IFetchConformanceUntyped |
capabilities() |
ICreate |
create() |
IDelete |
delete() |
IFetchConformanceUntyped |
fetchConformance() |
void |
forceConformanceCheck() |
FhirContext |
getFhirContext() |
IHttpRequest |
getLastRequest() |
protected String |
getPreferredId(IBaseResource theResource,
String theId) |
IHistory |
history() |
boolean |
isLogRequestAndResponse()
Deprecated.
Use
LoggingInterceptor as a client interceptor registered to your
client instead, as this provides much more fine-grained control over what is logged. This
method will be removed at some point (deprecated in HAPI 1.6 - 2016-06-16) |
IGetPage |
loadPage() |
IMeta |
meta() |
IOperation |
operation() |
IPatch |
patch() |
IRead |
read() |
<T extends IBaseResource> |
read(Class<T> theType,
String theId) |
<T extends IBaseResource> |
read(Class<T> theType,
UriDt theUrl) |
IBaseResource |
read(UriDt theUrl) |
IUntypedQuery |
search() |
void |
setLastRequest(IHttpRequest theLastRequest)
For now, this is a part of the internal API of HAPI - Use with caution as this method may change!
|
void |
setLogRequestAndResponse(boolean theLogRequestAndResponse)
Deprecated.
|
ITransaction |
transaction() |
IUpdate |
update() |
MethodOutcome |
update(IdDt theIdDt,
IBaseResource theResource) |
MethodOutcome |
update(String theId,
IBaseResource theResource) |
IValidate |
validate() |
MethodOutcome |
validate(IBaseResource theResource) |
<T extends IBaseResource> |
vread(Class<T> theType,
IdDt theId) |
<T extends IBaseResource> |
vread(Class<T> theType,
String theId,
String theVersionId) |
createExtraParams, fetchResourceFromUrl, getEncoding, getHttpClient, getInterceptors, getLastResponse, getLastResponseBody, getServerBase, getSummary, getUrlBase, isKeepResponses, isPrettyPrint, registerInterceptor, setDontValidateConformance, setEncoding, setKeepResponses, setPrettyPrint, setSummary, unregisterInterceptorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterInterceptor, unregisterInterceptorfetchResourceFromUrl, getEncoding, getHttpClient, getInterceptors, getServerBase, setEncoding, setPrettyPrint, setSummarypublic GenericClient(FhirContext theContext, IHttpClient theHttpClient, String theServerBase, RestfulClientFactory theFactory)
public IFetchConformanceUntyped capabilities()
capabilities in interface IGenericClientpublic ICreate create()
create in interface IGenericClientpublic IDelete delete()
delete in interface IGenericClientpublic IFetchConformanceUntyped fetchConformance()
fetchConformance in interface IGenericClientpublic void forceConformanceCheck()
forceConformanceCheck in interface IGenericClientpublic FhirContext getFhirContext()
getFhirContext in interface IRestfulClientpublic IHttpRequest getLastRequest()
protected String getPreferredId(IBaseResource theResource, String theId)
public IHistory history()
history in interface IGenericClient@Deprecated public boolean isLogRequestAndResponse()
LoggingInterceptor as a client interceptor registered to your
client instead, as this provides much more fine-grained control over what is logged. This
method will be removed at some point (deprecated in HAPI 1.6 - 2016-06-16)public IGetPage loadPage()
loadPage in interface IGenericClientpublic IMeta meta()
meta in interface IGenericClientpublic IOperation operation()
operation in interface IGenericClientpublic IPatch patch()
patch in interface IGenericClientpublic IRead read()
read in interface IGenericClientpublic <T extends IBaseResource> T read(Class<T> theType, String theId)
read in interface IGenericClientpublic <T extends IBaseResource> T read(Class<T> theType, UriDt theUrl)
read in interface IGenericClientpublic IBaseResource read(UriDt theUrl)
read in interface IGenericClientpublic IUntypedQuery search()
search in interface IGenericClientpublic void setLastRequest(IHttpRequest theLastRequest)
@Deprecated public void setLogRequestAndResponse(boolean theLogRequestAndResponse)
setLogRequestAndResponse in interface IGenericClientpublic ITransaction transaction()
transaction in interface IGenericClientpublic IUpdate update()
update in interface IGenericClientpublic MethodOutcome update(IdDt theIdDt, IBaseResource theResource)
update in interface IGenericClientpublic MethodOutcome update(String theId, IBaseResource theResource)
update in interface IGenericClientpublic IValidate validate()
validate in interface IGenericClientpublic MethodOutcome validate(IBaseResource theResource)
validate in interface IGenericClientpublic <T extends IBaseResource> T vread(Class<T> theType, IdDt theId)
vread in interface IGenericClientpublic <T extends IBaseResource> T vread(Class<T> theType, String theId, String theVersionId)
vread in interface IGenericClientCopyright © 2014–2018 University Health Network. All rights reserved.