Package ca.uhn.fhir.rest.server.method
Class BaseOutcomeReturningMethodBindingWithResourceIdButNoResourceBody
java.lang.Object
ca.uhn.fhir.rest.server.method.BaseMethodBinding
ca.uhn.fhir.rest.server.method.BaseOutcomeReturningMethodBindingWithResourceIdButNoResourceBody
- Direct Known Subclasses:
DeleteMethodBinding
,PatchMethodBinding
public abstract class BaseOutcomeReturningMethodBindingWithResourceIdButNoResourceBody
extends BaseMethodBinding
-
Constructor Summary
ConstructorDescriptionBaseOutcomeReturningMethodBindingWithResourceIdButNoResourceBody
(Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider, Class<?> theMethodAnnotationType, Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theResourceTypeFromAnnotation, String theResourceTypeNameFromAnnotation) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
addParametersForServerRequest
(RequestDetails theRequest, Object[] theParams) protected boolean
Subclasses may override to allow a void method return type, which is allowable for some methods (e.g.protected Integer
protected abstract String
For servers, this method will match only incoming requests that match the given operation, or which have no operation in the URL if this method returns null.Returns the name of the resource this method handles, ornull
if this method is not resource specificincomingServerRequestMatchesMethod
(RequestDetails theRequest) invokeServer
(IRestfulServer<?> theServer, RequestDetails theRequest) boolean
protected abstract Set
<ca.uhn.fhir.rest.api.RequestTypeEnum> Methods inherited from class ca.uhn.fhir.rest.server.method.BaseMethodBinding
bindMethod, close, createMethodParams, createParametersForServerRequest, getAllowableParamAnnotations, getContext, getIncludes, getMethod, getParameters, getProvider, getQueryParameters, getRequestIncludesFromParams, getRestOperationType, getRestOperationType, getRevIncludes, invokeServerMethod, isGlobalMethod, isSupportsConditional, isSupportsConditionalMultiple, populateRequestDetailsForInterceptor, setParameters, toResourceList, verifyMethodHasZeroOrOneOperationAnnotation
-
Constructor Details
-
BaseOutcomeReturningMethodBindingWithResourceIdButNoResourceBody
public BaseOutcomeReturningMethodBindingWithResourceIdButNoResourceBody(Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider, Class<?> theMethodAnnotationType, Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theResourceTypeFromAnnotation, String theResourceTypeNameFromAnnotation)
-
-
Method Details
-
getResourceName
Description copied from class:BaseMethodBinding
Returns the name of the resource this method handles, ornull
if this method is not resource specific- Specified by:
getResourceName
in classBaseMethodBinding
-
getIdParameterIndex
-
addParametersForServerRequest
protected abstract void addParametersForServerRequest(RequestDetails theRequest, Object[] theParams) -
allowVoidReturnType
protected boolean allowVoidReturnType()Subclasses may override to allow a void method return type, which is allowable for some methods (e.g. delete) -
getMatchingOperation
For servers, this method will match only incoming requests that match the given operation, or which have no operation in the URL if this method returns null. -
incomingServerRequestMatchesMethod
- Specified by:
incomingServerRequestMatchesMethod
in classBaseMethodBinding
-
invokeServer
public Object invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest) throws ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException, IOException - Specified by:
invokeServer
in classBaseMethodBinding
- Throws:
ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException
IOException
-
isReturnVoid
public boolean isReturnVoid() -
provideAllowableRequestTypes
-