Package ca.uhn.fhir.rest.client.impl
Class ClientInvocationHandler
- java.lang.Object
-
- ca.uhn.fhir.rest.client.impl.BaseClient
-
- ca.uhn.fhir.rest.client.impl.ClientInvocationHandler
-
- All Implemented Interfaces:
ca.uhn.fhir.rest.client.api.IRestfulClient,InvocationHandler
public class ClientInvocationHandler extends BaseClient implements InvocationHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ca.uhn.fhir.rest.client.impl.BaseClient
BaseClient.ResourceOrBinaryResponseHandler, BaseClient.ResourceResponseHandler<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
-
Field Summary
-
Fields inherited from class ca.uhn.fhir.rest.client.impl.BaseClient
HAPI_CLIENT_KEEPRESPONSES
-
-
Constructor Summary
Constructors Constructor Description ClientInvocationHandler(ca.uhn.fhir.rest.client.api.IHttpClient theClient, ca.uhn.fhir.context.FhirContext theContext, String theUrlBase, Map<Method,Object> theMethodToReturnValue, Map<Method,BaseMethodBinding<?>> theBindings, Map<Method,ClientInvocationHandlerFactory.ILambda> theMethodToLambda, RestfulClientFactory theFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBinding(Method theMethod, BaseMethodBinding<?> theBinding)ca.uhn.fhir.context.FhirContextgetFhirContext()Objectinvoke(Object theProxy, Method theMethod, Object[] theArgs)-
Methods inherited from class ca.uhn.fhir.rest.client.impl.BaseClient
createExtraParams, fetchResourceFromUrl, getEncoding, getHttpClient, getInterceptorService, getLastResponse, getLastResponseBody, getServerBase, getSummary, getUrlBase, isKeepResponses, isPrettyPrint, registerInterceptor, setDontValidateConformance, setEncoding, setFormatParamStyle, setInterceptorService, setKeepResponses, setPrettyPrint, setSummary, unregisterInterceptor
-
-
-
-
Constructor Detail
-
ClientInvocationHandler
public ClientInvocationHandler(ca.uhn.fhir.rest.client.api.IHttpClient theClient, ca.uhn.fhir.context.FhirContext theContext, String theUrlBase, Map<Method,Object> theMethodToReturnValue, Map<Method,BaseMethodBinding<?>> theBindings, Map<Method,ClientInvocationHandlerFactory.ILambda> theMethodToLambda, RestfulClientFactory theFactory)
-
-
Method Detail
-
addBinding
public void addBinding(Method theMethod, BaseMethodBinding<?> theBinding)
-
invoke
public Object invoke(Object theProxy, Method theMethod, Object[] theArgs) throws Throwable
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
getFhirContext
public ca.uhn.fhir.context.FhirContext getFhirContext()
- Specified by:
getFhirContextin interfaceca.uhn.fhir.rest.client.api.IRestfulClient
-
-