Package ca.uhn.fhir.rest.server.method
Class ReadMethodBinding
- java.lang.Object
-
- ca.uhn.fhir.rest.server.method.BaseMethodBinding<Object>
-
- ca.uhn.fhir.rest.server.method.BaseResourceReturningMethodBinding
-
- ca.uhn.fhir.rest.server.method.ReadMethodBinding
-
public class ReadMethodBinding extends BaseResourceReturningMethodBinding
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ca.uhn.fhir.rest.server.method.BaseResourceReturningMethodBinding
BaseResourceReturningMethodBinding.MethodReturnTypeEnum, BaseResourceReturningMethodBinding.ReturnTypeEnum
-
-
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 Instance Methods Concrete Methods Modifier and Type Method Description 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()ca.uhn.fhir.rest.api.RestOperationTypeEnumgetRestOperationType(RequestDetails theRequestDetails)Determine which operation is being fired for a specific requestBaseResourceReturningMethodBinding.ReturnTypeEnumgetReturnType()booleanincomingServerRequestMatchesMethod(RequestDetails theRequest)IBundleProviderinvokeServer(IRestfulServer<?> theServer, RequestDetails theRequest, Object[] theMethodParams)booleanisVread()-
Methods inherited from class ca.uhn.fhir.rest.server.method.BaseResourceReturningMethodBinding
callOutgoingFailureOperationOutcomeHook, callOutgoingResponseHook, doInvokeServer, getMethodReturnType, getResourceName, invokeServer, isAddContentLocationHeader, setResourceName
-
Methods inherited from class ca.uhn.fhir.rest.server.method.BaseMethodBinding
bindMethod, createMethodParams, createParametersForServerRequest, getContext, getIncludes, getMethod, getParameters, getProvider, getRequestIncludesFromParams, invokeServerMethod, isGlobalMethod, isSupportsConditional, isSupportsConditionalMultiple, populateActionRequestDetailsForInterceptor, setParameters, toResourceList, verifyMethodHasZeroOrOneOperationAnnotation
-
-
-
-
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
-
getRestOperationType
public ca.uhn.fhir.rest.api.RestOperationTypeEnum getRestOperationType(RequestDetails theRequestDetails)
Description copied from class:BaseMethodBindingDetermine which operation is being fired for a specific request- Overrides:
getRestOperationTypein classBaseMethodBinding<Object>- Parameters:
theRequestDetails- The request
-
getAllowableParamAnnotations
public List<Class<?>> getAllowableParamAnnotations()
- Overrides:
getAllowableParamAnnotationsin classBaseMethodBinding<Object>
-
getRestOperationType
@Nonnull public ca.uhn.fhir.rest.api.RestOperationTypeEnum getRestOperationType()
- Specified by:
getRestOperationTypein classBaseMethodBinding<Object>
-
getReturnType
public BaseResourceReturningMethodBinding.ReturnTypeEnum getReturnType()
- Specified by:
getReturnTypein classBaseResourceReturningMethodBinding
-
incomingServerRequestMatchesMethod
public boolean incomingServerRequestMatchesMethod(RequestDetails theRequest)
- Specified by:
incomingServerRequestMatchesMethodin classBaseMethodBinding<Object>
-
invokeServer
public IBundleProvider invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest, Object[] theMethodParams) throws ca.uhn.fhir.rest.server.exceptions.InvalidRequestException, ca.uhn.fhir.rest.server.exceptions.InternalErrorException
- Specified by:
invokeServerin classBaseResourceReturningMethodBinding- Throws:
ca.uhn.fhir.rest.server.exceptions.InvalidRequestExceptionca.uhn.fhir.rest.server.exceptions.InternalErrorException
-
isVread
public boolean isVread()
-
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
-
-