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
Constructors Constructor Description ReadMethodBinding(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theAnnotatedResourceType, Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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)List<Class<?>>getAllowableParamAnnotations()protected ca.uhn.fhir.model.valueset.BundleTypeEnumgetResponseBundleType()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.RestOperationTypeEnumgetRestOperationType()BaseResourceReturningMethodBinding.ReturnTypeEnumgetReturnType()HttpGetClientInvocationinvokeClient(Object[] theArgs)ObjectinvokeClientForBinary(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 of#invokeClient(String, Reader, int, Map)booleanisVread()-
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 Detail
-
ReadMethodBinding
public ReadMethodBinding(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theAnnotatedResourceType, Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider)
-
-
Method Detail
-
getAllowableParamAnnotations
public List<Class<?>> getAllowableParamAnnotations()
- Overrides:
getAllowableParamAnnotationsin classBaseMethodBinding<Object>
-
getRestOperationType
public ca.uhn.fhir.rest.api.RestOperationTypeEnum getRestOperationType()
- Specified by:
getRestOperationTypein classBaseMethodBinding<Object>
-
getReturnType
public BaseResourceReturningMethodBinding.ReturnTypeEnum getReturnType()
- Specified by:
getReturnTypein classBaseResourceReturningMethodBinding
-
invokeClient
public HttpGetClientInvocation invokeClient(Object[] theArgs)
- 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
public boolean isBinary()
Description copied from interface:IClientResponseHandlerHandlesBinaryIf this method returns true,IClientResponseHandler.invokeClient(String, InputStream, int, Map)should be invoked instead of#invokeClient(String, Reader, int, Map)- Specified by:
isBinaryin interfaceIClientResponseHandlerHandlesBinary<Object>
-
isVread
public boolean 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
protected ca.uhn.fhir.model.valueset.BundleTypeEnum 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
-
-