Package ca.uhn.fhir.rest.server.method
Class TransactionMethodBinding
- java.lang.Object
-
- ca.uhn.fhir.rest.server.method.BaseMethodBinding<Object>
-
- ca.uhn.fhir.rest.server.method.BaseResourceReturningMethodBinding
-
- ca.uhn.fhir.rest.server.method.TransactionMethodBinding
-
public class TransactionMethodBinding 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 TransactionMethodBinding(Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()booleanincomingServerRequestMatchesMethod(RequestDetails theRequest)ObjectinvokeServer(IRestfulServer<?> theServer, RequestDetails theRequest, Object[] theMethodParams)protected voidpopulateActionRequestDetailsForInterceptor(RequestDetails theRequestDetails, IServerInterceptor.ActionRequestDetails theDetails, Object[] theMethodParams)Subclasses may override this method (but should also call super.BaseMethodBinding.populateActionRequestDetailsForInterceptor(RequestDetails, ActionRequestDetails, Object[])to provide method specifics to the interceptors.-
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, getAllowableParamAnnotations, getContext, getIncludes, getMethod, getParameters, getProvider, getRequestIncludesFromParams, getRestOperationType, invokeServerMethod, isGlobalMethod, isSupportsConditional, isSupportsConditionalMultiple, setParameters, toResourceList, verifyMethodHasZeroOrOneOperationAnnotation
-
-
-
-
Constructor Detail
-
TransactionMethodBinding
public TransactionMethodBinding(Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider)
-
-
Method Detail
-
getRestOperationType
@Nonnull public ca.uhn.fhir.rest.api.RestOperationTypeEnum getRestOperationType()
- Specified by:
getRestOperationTypein classBaseMethodBinding<Object>
-
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
-
getReturnType
public BaseResourceReturningMethodBinding.ReturnTypeEnum getReturnType()
- Specified by:
getReturnTypein classBaseResourceReturningMethodBinding
-
incomingServerRequestMatchesMethod
public boolean incomingServerRequestMatchesMethod(RequestDetails theRequest)
- Specified by:
incomingServerRequestMatchesMethodin classBaseMethodBinding<Object>
-
invokeServer
public Object 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
-
populateActionRequestDetailsForInterceptor
protected void populateActionRequestDetailsForInterceptor(RequestDetails theRequestDetails, IServerInterceptor.ActionRequestDetails theDetails, Object[] theMethodParams)
Description copied from class:BaseMethodBindingSubclasses may override this method (but should also call super.BaseMethodBinding.populateActionRequestDetailsForInterceptor(RequestDetails, ActionRequestDetails, Object[])to provide method specifics to the interceptors.- Overrides:
populateActionRequestDetailsForInterceptorin classBaseMethodBinding<Object>- Parameters:
theRequestDetails- The server request detailstheDetails- The details object to populatetheMethodParams- The method params as generated by the specific method binding
-
-