Package ca.uhn.fhir.rest.client.method
Class OperationMethodBinding
- java.lang.Object
-
- ca.uhn.fhir.rest.client.method.BaseMethodBinding<Object>
-
- ca.uhn.fhir.rest.client.method.BaseResourceReturningMethodBinding
-
- ca.uhn.fhir.rest.client.method.OperationMethodBinding
-
- All Implemented Interfaces:
IClientResponseHandler<Object>
- Direct Known Subclasses:
ValidateMethodBindingDstu2Plus
public class OperationMethodBinding extends BaseResourceReturningMethodBinding
-
-
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 Modifier Constructor Description protectedOperationMethodBinding(Class<?> theReturnResourceType, Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theReturnTypeFromRp, Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider, boolean theIdempotent, String theOperationName, Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theOperationType, ca.uhn.fhir.model.valueset.BundleTypeEnum theBundleType)OperationMethodBinding(Class<?> theReturnResourceType, Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theReturnTypeFromRp, Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider, ca.uhn.fhir.rest.annotation.Operation theAnnotation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BaseHttpClientInvocationcreateOperationInvocation(ca.uhn.fhir.context.FhirContext theContext, String theResourceName, String theId, String theVersion, String theOperationName, org.hl7.fhir.instance.model.api.IBaseParameters theInput, boolean theUseHttpGet)static BaseHttpClientInvocationcreateProcessMsgInvocation(ca.uhn.fhir.context.FhirContext theContext, String theOperationName, org.hl7.fhir.instance.model.api.IBaseBundle theInput, Map<String,List<String>> urlParams)StringgetDescription()StringgetName()Returns the name of the operation, starting with "$"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()BaseHttpClientInvocationinvokeClient(Object[] theArgs)booleanisIdempotent()voidsetDescription(String theDescription)-
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, getAllowableParamAnnotations, getContext, getIncludes, getMethod, getParameters, getProvider, isResourceInterface, isSupportsConditional, isSupportsConditionalMultiple, processNon2xxResponseAndReturnExceptionToThrow, setParameters, verifyMethodHasZeroOrOneOperationAnnotation
-
-
-
-
Constructor Detail
-
OperationMethodBinding
protected OperationMethodBinding(Class<?> theReturnResourceType, Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theReturnTypeFromRp, Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider, boolean theIdempotent, String theOperationName, Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theOperationType, ca.uhn.fhir.model.valueset.BundleTypeEnum theBundleType)
-
OperationMethodBinding
public OperationMethodBinding(Class<?> theReturnResourceType, Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theReturnTypeFromRp, Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider, ca.uhn.fhir.rest.annotation.Operation theAnnotation)
-
-
Method Detail
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String theDescription)
-
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
-
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 BaseHttpClientInvocation invokeClient(Object[] theArgs) throws ca.uhn.fhir.rest.server.exceptions.InternalErrorException
- Specified by:
invokeClientin classBaseMethodBinding<Object>- Throws:
ca.uhn.fhir.rest.server.exceptions.InternalErrorException
-
isIdempotent
public boolean isIdempotent()
-
createOperationInvocation
public static BaseHttpClientInvocation createOperationInvocation(ca.uhn.fhir.context.FhirContext theContext, String theResourceName, String theId, String theVersion, String theOperationName, org.hl7.fhir.instance.model.api.IBaseParameters theInput, boolean theUseHttpGet)
-
createProcessMsgInvocation
public static BaseHttpClientInvocation createProcessMsgInvocation(ca.uhn.fhir.context.FhirContext theContext, String theOperationName, org.hl7.fhir.instance.model.api.IBaseBundle theInput, Map<String,List<String>> urlParams)
-
-