
Package ca.uhn.fhir.rest.server.method
Class UpdateMethodBinding
java.lang.Object
ca.uhn.fhir.rest.server.method.BaseMethodBinding
ca.uhn.fhir.rest.server.method.UpdateMethodBinding
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateMethodBinding(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)static org.hl7.fhir.instance.model.api.IIdTypeapplyETagAsVersion(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IIdType theId) static org.hl7.fhir.instance.model.api.IIdTypeapplyETagAsVersion(String theIfMatchValue, org.hl7.fhir.instance.model.api.IIdType theId) 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.Returns the name of the resource this method handles, ornullif this method is not resource specificca.uhn.fhir.rest.api.RestOperationTypeEnumincomingServerRequestMatchesMethod(RequestDetails theRequest) invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest) booleanprotected voidpopulateRequestDetailsForInterceptor(RequestDetails theRequestDetails, Object[] theMethodParams) Subclasses may override this method (but should also call super) to provide method specifics to the interceptors.protected Set<ca.uhn.fhir.rest.api.RequestTypeEnum> protected voidvalidateResourceIdAndUrlIdForNonConditionalOperation(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceId, String theUrlId, String theMatchUrl) Subclasses may overrideMethods 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, setParameters, toResourceList, verifyMethodHasZeroOrOneOperationAnnotation
-
Constructor Details
-
UpdateMethodBinding
public UpdateMethodBinding(Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider)
-
-
Method Details
-
addParametersForServerRequest
-
applyETagAsVersion
public static org.hl7.fhir.instance.model.api.IIdType applyETagAsVersion(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IIdType theId) -
applyETagAsVersion
public static org.hl7.fhir.instance.model.api.IIdType applyETagAsVersion(String theIfMatchValue, org.hl7.fhir.instance.model.api.IIdType theId) -
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. -
getRestOperationType
- Specified by:
getRestOperationTypein classBaseMethodBinding
-
provideAllowableRequestTypes
-
validateResourceIdAndUrlIdForNonConditionalOperation
protected void validateResourceIdAndUrlIdForNonConditionalOperation(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceId, String theUrlId, String theMatchUrl) Subclasses may override -
getResourceName
Description copied from class:BaseMethodBindingReturns the name of the resource this method handles, ornullif this method is not resource specific- Specified by:
getResourceNamein classBaseMethodBinding
-
populateRequestDetailsForInterceptor
protected void populateRequestDetailsForInterceptor(RequestDetails theRequestDetails, Object[] theMethodParams) Description copied from class:BaseMethodBindingSubclasses may override this method (but should also call super) to provide method specifics to the interceptors.- Overrides:
populateRequestDetailsForInterceptorin classBaseMethodBinding- Parameters:
theRequestDetails- The server request detailstheMethodParams- The method params as generated by the specific method binding
-
allowVoidReturnType
protected boolean allowVoidReturnType()Subclasses may override to allow a void method return type, which is allowable for some methods (e.g. delete) -
incomingServerRequestMatchesMethod
- Specified by:
incomingServerRequestMatchesMethodin classBaseMethodBinding
-
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()
-