
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
ConstructorsConstructorDescriptionReadMethodBinding(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 HttpGetClientInvocationcreateAbsoluteReadInvocation(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IIdType theId) static HttpGetClientInvocationcreateAbsoluteVReadInvocation(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IIdType theId) static HttpGetClientInvocationcreateReadInvocation(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IIdType theId, String theResourceName) static HttpGetClientInvocationcreateVReadInvocation(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IIdType theId, String theResourceName) protected ca.uhn.fhir.model.valueset.BundleTypeEnumIf the response is a bundle, this type will be placed in the root of the bundle (can be null)ca.uhn.fhir.rest.api.RestOperationTypeEnuminvokeClient(Object[] theArgs) invokeClientForBinary(String theResponseMimeType, InputStream theResponseReader, int theResponseStatusCode, Map<String, List<String>> theHeaders) booleanisBinary()If this method returns true,IClientResponseHandler.invokeClient(String, InputStream, int, Map)should be invoked instead ofinvalid reference
#invokeClient(String, Reader, int, Map)booleanisVread()Methods inherited from class ca.uhn.fhir.rest.client.method.BaseResourceReturningMethodBinding
getMethodReturnType, getResourceName, invokeClient, isAddContentLocationHeader, setResourceNameMethods inherited from class ca.uhn.fhir.rest.client.method.BaseMethodBinding
bindMethod, createAppropriateParserForParsingResponse, getContext, getIncludes, getMethod, getParameters, getProvider, isResourceInterface, isSupportsConditional, isSupportsConditionalMultiple, processNon2xxResponseAndReturnExceptionToThrow, setParameters, verifyMethodHasZeroOrOneOperationAnnotationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getAllowableParamAnnotationsin classBaseMethodBinding<Object>
-
getRestOperationType
- Specified by:
getRestOperationTypein classBaseMethodBinding<Object>
-
getReturnType
- Specified by:
getReturnTypein classBaseResourceReturningMethodBinding
-
invokeClient
- Specified by:
invokeClientin 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:
invokeClientForBinaryin interfaceIClientResponseHandlerHandlesBinary<Object>- Throws:
IOExceptionca.uhn.fhir.rest.server.exceptions.BaseServerResponseException
-
isBinary
Description copied from interface:IClientResponseHandlerHandlesBinaryIf this method returns true,IClientResponseHandler.invokeClient(String, InputStream, int, Map)should be invoked instead ofinvalid reference
#invokeClient(String, Reader, int, Map)- Specified by:
isBinaryin 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:BaseResourceReturningMethodBindingIf the response is a bundle, this type will be placed in the root of the bundle (can be null)- Specified by:
getResponseBundleTypein classBaseResourceReturningMethodBinding
-