
Package ca.uhn.fhir.rest.server.method
Class PatchMethodBinding
java.lang.Object
ca.uhn.fhir.rest.server.method.BaseMethodBinding
ca.uhn.fhir.rest.server.method.BaseOutcomeReturningMethodBindingWithResourceIdButNoResourceBody
ca.uhn.fhir.rest.server.method.PatchMethodBinding
public class PatchMethodBinding
extends BaseOutcomeReturningMethodBindingWithResourceIdButNoResourceBody
Base class for an operation that has a resource type but not a resource body in the
request body
-
Constructor Summary
ConstructorsConstructorDescriptionPatchMethodBinding(Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddParametersForServerRequest(RequestDetails theRequest, Object[] theParams) protected booleanSubclasses may override to allow a void method return type, which is allowable for some methods (e.g. delete)protected StringFor 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.RestOperationTypeEnumincomingServerRequestMatchesMethod(RequestDetails theRequest) invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest) booleanprotected Set<ca.uhn.fhir.rest.api.RequestTypeEnum> Methods inherited from class ca.uhn.fhir.rest.server.method.BaseOutcomeReturningMethodBindingWithResourceIdButNoResourceBody
getIdParameterIndex, getResourceNameMethods 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
-
PatchMethodBinding
public PatchMethodBinding(Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider)
-
-
Method Details
-
allowVoidReturnType
Subclasses may override to allow a void method return type, which is allowable for some methods (e.g. delete) -
incomingServerRequestMatchesMethod
-
getRestOperationType
- Specified by:
getRestOperationTypein classBaseMethodBinding
-
provideAllowableRequestTypes
-
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. -
invokeServer
public Object invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest) throws ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException, IOException - Specified by:
invokeServerin classBaseMethodBinding- Throws:
ca.uhn.fhir.rest.server.exceptions.BaseServerResponseExceptionIOException
-
isReturnVoid
public boolean isReturnVoid()
-