public class OperationMethodBinding extends BaseResourceReturningMethodBinding
| Modifier and Type | Class and Description |
|---|---|
static class |
OperationMethodBinding.ReturnType |
BaseResourceReturningMethodBinding.MethodReturnTypeEnum, BaseResourceReturningMethodBinding.ResourceOrDstu1Bundle, BaseResourceReturningMethodBinding.ReturnTypeEnumBaseMethodBinding.ActiveRequestReader, BaseMethodBinding.InactiveRequestReader, BaseMethodBinding.IRequestReaderALLOWED_PARAMS| Modifier | Constructor and Description |
|---|---|
protected |
OperationMethodBinding(Class<?> theReturnResourceType,
Class<? extends IBaseResource> theReturnTypeFromRp,
Method theMethod,
FhirContext theContext,
Object theProvider,
boolean theIdempotent,
String theOperationName,
Class<? extends IBaseResource> theOperationType,
OperationParam[] theReturnParams,
BundleTypeEnum theBundleType) |
|
OperationMethodBinding(Class<?> theReturnResourceType,
Class<? extends IBaseResource> theReturnTypeFromRp,
Method theMethod,
FhirContext theContext,
Object theProvider,
Operation theAnnotation) |
| Modifier and Type | Method and Description |
|---|---|
static BaseHttpClientInvocation |
createOperationInvocation(FhirContext theContext,
String theResourceName,
String theId,
String theOperationName,
IBaseParameters theInput,
boolean theUseHttpGet) |
static BaseHttpClientInvocation |
createProcessMsgInvocation(FhirContext theContext,
String theOperationName,
IBaseBundle theInput,
Map<String,List<String>> urlParams) |
String |
getDescription() |
String |
getName()
Returns the name of the operation, starting with "$"
|
protected BundleTypeEnum |
getResponseBundleType()
If the response is a bundle, this type will be placed in the root of the bundle (can be null)
|
RestOperationTypeEnum |
getRestOperationType() |
List<OperationMethodBinding.ReturnType> |
getReturnParams() |
BaseResourceReturningMethodBinding.ReturnTypeEnum |
getReturnType() |
boolean |
incomingServerRequestMatchesMethod(RequestDetails theRequest) |
BaseHttpClientInvocation |
invokeClient(Object[] theArgs) |
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) |
doInvokeServer, getMethodReturnType, getResourceName, invokeClient, isAddContentLocationHeader, setResourceNamebindMethod, createAppropriateParserForParsingResponse, createAppropriateParserForParsingServerRequest, createParametersForServerRequest, getAllowableParamAnnotations, getContext, getIncludes, getMethod, getParameters, getProvider, getRequestIncludesFromParams, getRestOperationType, invokeServerMethod, isSupportsConditional, isSupportsConditionalMultiple, processNon2xxResponseAndReturnExceptionToThrow, setParameters, toResourceList, verifyMethodHasZeroOrOneOperationAnnotationprotected OperationMethodBinding(Class<?> theReturnResourceType, Class<? extends IBaseResource> theReturnTypeFromRp, Method theMethod, FhirContext theContext, Object theProvider, boolean theIdempotent, String theOperationName, Class<? extends IBaseResource> theOperationType, OperationParam[] theReturnParams, BundleTypeEnum theBundleType)
public OperationMethodBinding(Class<?> theReturnResourceType, Class<? extends IBaseResource> theReturnTypeFromRp, Method theMethod, FhirContext theContext, Object theProvider, Operation theAnnotation)
public String getDescription()
protected BundleTypeEnum getResponseBundleType()
BaseResourceReturningMethodBindinggetResponseBundleType in class BaseResourceReturningMethodBindingpublic 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 BaseHttpClientInvocation invokeClient(Object[] theArgs) throws InternalErrorException
invokeClient in class BaseMethodBinding<Object>InternalErrorExceptionpublic Object invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest) throws BaseServerResponseException, IOException
invokeServer in class BaseResourceReturningMethodBindingBaseServerResponseExceptionIOExceptionpublic Object invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest, Object[] theMethodParams) throws BaseServerResponseException
invokeServer in class BaseResourceReturningMethodBindingBaseServerResponseExceptionpublic 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 bindingpublic void setDescription(String theDescription)
public static BaseHttpClientInvocation createOperationInvocation(FhirContext theContext, String theResourceName, String theId, String theOperationName, IBaseParameters theInput, boolean theUseHttpGet)
public static BaseHttpClientInvocation createProcessMsgInvocation(FhirContext theContext, String theOperationName, IBaseBundle theInput, Map<String,List<String>> urlParams)
Copyright © 2014–2017 University Health Network. All rights reserved.