Package ca.uhn.fhir.rest.server.method
Class DeleteMethodBinding
java.lang.Object
ca.uhn.fhir.rest.server.method.BaseMethodBinding
ca.uhn.fhir.rest.server.method.BaseOutcomeReturningMethodBindingWithResourceIdButNoResourceBody
ca.uhn.fhir.rest.server.method.DeleteMethodBinding
public class DeleteMethodBinding
extends BaseOutcomeReturningMethodBindingWithResourceIdButNoResourceBody
-
Constructor Summary
ConstructorDescriptionDeleteMethodBinding
(Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 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.ca.uhn.fhir.rest.api.RestOperationTypeEnum
incomingServerRequestMatchesMethod
(RequestDetails theRequest) invokeServer
(IRestfulServer<?> theServer, RequestDetails theRequest) boolean
protected Set
<ca.uhn.fhir.rest.api.RequestTypeEnum> Methods inherited from class ca.uhn.fhir.rest.server.method.BaseOutcomeReturningMethodBindingWithResourceIdButNoResourceBody
getIdParameterIndex, getResourceName
Methods inherited from class ca.uhn.fhir.rest.server.method.BaseMethodBinding
bindMethod, close, createMethodParams, createParametersForServerRequest, getAllowableParamAnnotations, getContext, getIncludes, getMethod, getParameters, getProvider, getQueryParameters, getRequestIncludesFromParams, getRestOperationType, getRevIncludes, invokeServerMethod, isGlobalMethod, isSupportsConditional, isSupportsConditionalMultiple, populateRequestDetailsForInterceptor, setParameters, toResourceList, verifyMethodHasZeroOrOneOperationAnnotation
-
Constructor Details
-
DeleteMethodBinding
public DeleteMethodBinding(Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider)
-
-
Method Details
-
getRestOperationType
- Specified by:
getRestOperationType
in classBaseMethodBinding
-
provideAllowableRequestTypes
-
allowVoidReturnType
Subclasses may override to allow a void method return type, which is allowable for some methods (e.g. delete) -
addParametersForServerRequest
-
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()
-