Package ca.uhn.fhir.rest.client.method
Class ReadMethodBinding
java.lang.Object
ca.uhn.fhir.rest.client.method.BaseMethodBinding<Object>
ca.uhn.fhir.rest.client.method.BaseResourceReturningMethodBinding
ca.uhn.fhir.rest.client.method.ReadMethodBinding
- All Implemented Interfaces:
IClientResponseHandler<Object>
,IClientResponseHandlerHandlesBinary<Object>
public class ReadMethodBinding
extends BaseResourceReturningMethodBinding
implements IClientResponseHandlerHandlesBinary<Object>
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.uhn.fhir.rest.client.method.BaseResourceReturningMethodBinding
BaseResourceReturningMethodBinding.MethodReturnTypeEnum, BaseResourceReturningMethodBinding.ResourceOrDstu1Bundle, BaseResourceReturningMethodBinding.ReturnTypeEnum
-
Field Summary
Fields inherited from class ca.uhn.fhir.rest.client.method.BaseResourceReturningMethodBinding
ALLOWED_PARAMS
-
Constructor Summary
ConstructorDescriptionReadMethodBinding
(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theAnnotatedResourceType, Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider) -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpGetClientInvocation
createAbsoluteReadInvocation
(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IIdType theId) static HttpGetClientInvocation
createAbsoluteVReadInvocation
(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IIdType theId) static HttpGetClientInvocation
createReadInvocation
(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IIdType theId, String theResourceName) static HttpGetClientInvocation
createVReadInvocation
(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IIdType theId, String theResourceName) protected ca.uhn.fhir.model.valueset.BundleTypeEnum
If the response is a bundle, this type will be placed in the root of the bundle (can be null)ca.uhn.fhir.rest.api.RestOperationTypeEnum
invokeClient
(Object[] theArgs) invokeClientForBinary
(String theResponseMimeType, InputStream theResponseReader, int theResponseStatusCode, Map<String, List<String>> theHeaders) boolean
isBinary()
If this method returns true,IClientResponseHandler.invokeClient(String, InputStream, int, Map)
should be invoked instead ofinvalid reference
#invokeClient(String, Reader, int, Map)
boolean
isVread()
Methods inherited from class ca.uhn.fhir.rest.client.method.BaseResourceReturningMethodBinding
getMethodReturnType, getResourceName, invokeClient, isAddContentLocationHeader, setResourceName
Methods inherited from class ca.uhn.fhir.rest.client.method.BaseMethodBinding
bindMethod, createAppropriateParserForParsingResponse, getContext, getIncludes, getMethod, getParameters, getProvider, isResourceInterface, isSupportsConditional, isSupportsConditionalMultiple, processNon2xxResponseAndReturnExceptionToThrow, setParameters, verifyMethodHasZeroOrOneOperationAnnotation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ca.uhn.fhir.rest.client.method.IClientResponseHandler
invokeClient
-
Constructor Details
-
ReadMethodBinding
public ReadMethodBinding(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theAnnotatedResourceType, Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider)
-
-
Method Details
-
getAllowableParamAnnotations
- Overrides:
getAllowableParamAnnotations
in classBaseMethodBinding<Object>
-
getRestOperationType
- Specified by:
getRestOperationType
in classBaseMethodBinding<Object>
-
getReturnType
- Specified by:
getReturnType
in classBaseResourceReturningMethodBinding
-
invokeClient
- Specified by:
invokeClient
in classBaseMethodBinding<Object>
-
invokeClientForBinary
public Object invokeClientForBinary(String theResponseMimeType, InputStream theResponseReader, int theResponseStatusCode, Map<String, List<String>> theHeaders) throws IOException, ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException- Specified by:
invokeClientForBinary
in interfaceIClientResponseHandlerHandlesBinary<Object>
- Throws:
IOException
ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException
-
isBinary
Description copied from interface:IClientResponseHandlerHandlesBinary
If this method returns true,IClientResponseHandler.invokeClient(String, InputStream, int, Map)
should be invoked instead ofinvalid reference
#invokeClient(String, Reader, int, Map)
- Specified by:
isBinary
in interfaceIClientResponseHandlerHandlesBinary<Object>
-
isVread
-
createAbsoluteReadInvocation
public static HttpGetClientInvocation createAbsoluteReadInvocation(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IIdType theId) -
createAbsoluteVReadInvocation
public static HttpGetClientInvocation createAbsoluteVReadInvocation(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IIdType theId) -
createReadInvocation
public static HttpGetClientInvocation createReadInvocation(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IIdType theId, String theResourceName) -
createVReadInvocation
public static HttpGetClientInvocation createVReadInvocation(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IIdType theId, String theResourceName) -
getResponseBundleType
Description copied from class:BaseResourceReturningMethodBinding
If the response is a bundle, this type will be placed in the root of the bundle (can be null)- Specified by:
getResponseBundleType
in classBaseResourceReturningMethodBinding
-