public class OperationMethodBinding extends BaseResourceReturningMethodBinding
| Modifier and Type | Class and Description |
|---|---|
static class |
OperationMethodBinding.ReturnType |
BaseResourceReturningMethodBinding.MethodReturnTypeEnum, BaseResourceReturningMethodBinding.ReturnTypeEnum| Modifier and Type | Field and Description |
|---|---|
static String |
WILDCARD_NAME |
| Modifier | Constructor and Description |
|---|---|
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.rest.annotation.OperationParam[] theReturnParams,
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) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
String |
getName()
Returns the name of the operation, starting with "$"
|
protected ca.uhn.fhir.model.valueset.BundleTypeEnum |
getResponseBundleType()
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.RestOperationTypeEnum |
getRestOperationType() |
ca.uhn.fhir.rest.api.RestOperationTypeEnum |
getRestOperationType(RequestDetails theRequestDetails)
Determine which operation is being fired for a specific request
|
List<OperationMethodBinding.ReturnType> |
getReturnParams() |
BaseResourceReturningMethodBinding.ReturnTypeEnum |
getReturnType() |
boolean |
incomingServerRequestMatchesMethod(RequestDetails theRequest) |
Object |
invokeServer(IRestfulServer<?> theServer,
RequestDetails theRequest) |
Object |
invokeServer(IRestfulServer<?> theServer,
RequestDetails theRequest,
Object[] theMethodParams) |
boolean |
isCanOperateAtInstanceLevel() |
boolean |
isCanOperateAtServerLevel() |
boolean |
isCanOperateAtTypeLevel() |
boolean |
isIdempotent() |
protected void |
populateActionRequestDetailsForInterceptor(RequestDetails theRequestDetails,
IServerInterceptor.ActionRequestDetails theDetails,
Object[] theMethodParams)
Subclasses may override this method (but should also call super.
#populateActionRequestDetailsForInterceptor(RequestDetails, ActionRequestDetails, Object[]) to provide method specifics to the
interceptors. |
void |
setDescription(String theDescription) |
String |
toString() |
doInvokeServer, getMethodReturnType, getResourceName, isAddContentLocationHeader, setResourceNamebindMethod, createAppropriateParserForParsingResponse, createAppropriateParserForParsingServerRequest, createMethodParams, createParametersForServerRequest, getAllowableParamAnnotations, getContext, getIncludes, getMethod, getParameters, getProvider, getRequestIncludesFromParams, invokeServerMethod, isGlobalMethod, isSupportsConditional, isSupportsConditionalMultiple, processNon2xxResponseAndReturnExceptionToThrow, setParameters, toResourceList, verifyMethodHasZeroOrOneOperationAnnotationpublic static final String WILDCARD_NAME
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.rest.annotation.OperationParam[] theReturnParams, ca.uhn.fhir.model.valueset.BundleTypeEnum theBundleType)
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)
public String getDescription()
public void setDescription(String theDescription)
protected ca.uhn.fhir.model.valueset.BundleTypeEnum getResponseBundleType()
BaseResourceReturningMethodBindinggetResponseBundleType in class BaseResourceReturningMethodBinding@Nonnull public ca.uhn.fhir.rest.api.RestOperationTypeEnum getRestOperationType()
getRestOperationType in class BaseMethodBinding<Object>public List<OperationMethodBinding.ReturnType> getReturnParams()
public BaseResourceReturningMethodBinding.ReturnTypeEnum getReturnType()
getReturnType in class BaseResourceReturningMethodBindingpublic boolean incomingServerRequestMatchesMethod(RequestDetails theRequest)
incomingServerRequestMatchesMethod in class BaseMethodBinding<Object>public ca.uhn.fhir.rest.api.RestOperationTypeEnum getRestOperationType(RequestDetails theRequestDetails)
BaseMethodBindinggetRestOperationType in class BaseMethodBinding<Object>theRequestDetails - The requestpublic Object invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest) throws ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException, IOException
invokeServer in class BaseResourceReturningMethodBindingca.uhn.fhir.rest.server.exceptions.BaseServerResponseExceptionIOExceptionpublic Object invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest, Object[] theMethodParams) throws ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException
invokeServer in class BaseResourceReturningMethodBindingca.uhn.fhir.rest.server.exceptions.BaseServerResponseExceptionpublic boolean isCanOperateAtInstanceLevel()
public boolean isCanOperateAtServerLevel()
public boolean isCanOperateAtTypeLevel()
public boolean isIdempotent()
protected void populateActionRequestDetailsForInterceptor(RequestDetails theRequestDetails, IServerInterceptor.ActionRequestDetails theDetails, Object[] theMethodParams)
BaseMethodBinding#populateActionRequestDetailsForInterceptor(RequestDetails, ActionRequestDetails, Object[]) to provide method specifics to the
interceptors.populateActionRequestDetailsForInterceptor in class BaseMethodBinding<Object>theRequestDetails - The server request detailstheDetails - The details object to populatetheMethodParams - The method params as generated by the specific method bindingCopyright © 2014–2019 University Health Network. All rights reserved.