Class GenericClient

java.lang.Object
ca.uhn.fhir.rest.client.impl.BaseClient
ca.uhn.fhir.rest.client.impl.GenericClient
All Implemented Interfaces:
ca.uhn.fhir.rest.client.api.IGenericClient, ca.uhn.fhir.rest.client.api.IRestfulClient

public class GenericClient extends BaseClient implements ca.uhn.fhir.rest.client.api.IGenericClient
Author:
James Agnew, Doug Martin (Regenstrief Center for Biomedical Informatics)
  • Constructor Details

    • GenericClient

      public GenericClient(ca.uhn.fhir.context.FhirContext theContext, ca.uhn.fhir.rest.client.api.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!
  • Method Details

    • capabilities

      public ca.uhn.fhir.rest.gclient.IFetchConformanceUntyped capabilities()
      Specified by:
      capabilities in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • create

      public ca.uhn.fhir.rest.gclient.ICreate create()
      Specified by:
      create in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • delete

      public ca.uhn.fhir.rest.gclient.IDelete delete()
      Specified by:
      delete in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • fetchConformance

      public ca.uhn.fhir.rest.gclient.IFetchConformanceUntyped fetchConformance()
      Specified by:
      fetchConformance in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • forceConformanceCheck

      public void forceConformanceCheck()
      Specified by:
      forceConformanceCheck in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • getFhirContext

      public ca.uhn.fhir.context.FhirContext getFhirContext()
      Specified by:
      getFhirContext in interface ca.uhn.fhir.rest.client.api.IRestfulClient
    • getLastRequest

      public ca.uhn.fhir.rest.client.api.IHttpRequest getLastRequest()
    • setLastRequest

      public void setLastRequest(ca.uhn.fhir.rest.client.api.IHttpRequest theLastRequest)
      For now, this is a part of the internal API of HAPI - Use with caution as this method may change!
    • getPreferredId

      protected String getPreferredId(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theId)
    • history

      public ca.uhn.fhir.rest.gclient.IHistory history()
      Specified by:
      history in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • 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)
    • setLogRequestAndResponse

      @Deprecated public void setLogRequestAndResponse(boolean theLogRequestAndResponse)
      Deprecated.
      Specified by:
      setLogRequestAndResponse in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • loadPage

      public ca.uhn.fhir.rest.gclient.IGetPage loadPage()
      Specified by:
      loadPage in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • meta

      public ca.uhn.fhir.rest.gclient.IMeta meta()
      Specified by:
      meta in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • operation

      public ca.uhn.fhir.rest.gclient.IOperation operation()
      Specified by:
      operation in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • patch

      public ca.uhn.fhir.rest.gclient.IPatch patch()
      Specified by:
      patch in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • read

      public ca.uhn.fhir.rest.gclient.IRead read()
      Specified by:
      read in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • read

      public <T extends org.hl7.fhir.instance.model.api.IBaseResource> T read(Class<T> theType, String theId)
      Specified by:
      read in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • read

      public <T extends org.hl7.fhir.instance.model.api.IBaseResource> T read(Class<T> theType, ca.uhn.fhir.model.primitive.UriDt theUrl)
      Specified by:
      read in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • read

      public org.hl7.fhir.instance.model.api.IBaseResource read(ca.uhn.fhir.model.primitive.UriDt theUrl)
      Specified by:
      read in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • search

      public ca.uhn.fhir.rest.gclient.IUntypedQuery search()
      Specified by:
      search in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • transaction

      public ca.uhn.fhir.rest.gclient.ITransaction transaction()
      Specified by:
      transaction in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • update

      public ca.uhn.fhir.rest.gclient.IUpdate update()
      Specified by:
      update in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • update

      public ca.uhn.fhir.rest.api.MethodOutcome update(ca.uhn.fhir.model.primitive.IdDt theIdDt, org.hl7.fhir.instance.model.api.IBaseResource theResource)
      Specified by:
      update in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • update

      public ca.uhn.fhir.rest.api.MethodOutcome update(String theId, org.hl7.fhir.instance.model.api.IBaseResource theResource)
      Specified by:
      update in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • validate

      public ca.uhn.fhir.rest.gclient.IValidate validate()
      Specified by:
      validate in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • validate

      public ca.uhn.fhir.rest.api.MethodOutcome validate(org.hl7.fhir.instance.model.api.IBaseResource theResource)
      Specified by:
      validate in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • vread

      public <T extends org.hl7.fhir.instance.model.api.IBaseResource> T vread(Class<T> theType, ca.uhn.fhir.model.primitive.IdDt theId)
      Specified by:
      vread in interface ca.uhn.fhir.rest.client.api.IGenericClient
    • vread

      public <T extends org.hl7.fhir.instance.model.api.IBaseResource> T vread(Class<T> theType, String theId, String theVersionId)
      Specified by:
      vread in interface ca.uhn.fhir.rest.client.api.IGenericClient