
Class ServerOperationInterceptorAdapter
java.lang.Object
ca.uhn.fhir.rest.server.interceptor.InterceptorAdapter
ca.uhn.fhir.rest.server.interceptor.ServerOperationInterceptorAdapter
- All Implemented Interfaces:
IServerInterceptor,IServerOperationInterceptor
public class ServerOperationInterceptorAdapter
extends InterceptorAdapter
implements IServerOperationInterceptor
NOP implementation of
IServerOperationInterceptor-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidresourceCreated(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource) This method is called by the server immediately after a resource has been created, within the database transaction scope of the operation.voidresourceDeleted(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource) This method is called by the server immediately after a resource has been deleted, within the database transaction scope of the operation.voidresourcePreCreate(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource) This method is called by the server immediately before a resource is about to be created, within the database transaction scope of the operation.voidresourcePreDelete(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource) This method is called by the server immediately before a resource is about to be deleted, within the database transaction scope of the operation.voidresourcePreUpdate(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theOldResource, org.hl7.fhir.instance.model.api.IBaseResource theNewResource) This method is called by the server immediately before a resource is about to be updated, within the database transaction scope of the operation.voidresourceUpdated(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource) Deprecated.voidresourceUpdated(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theOldResource, org.hl7.fhir.instance.model.api.IBaseResource theNewResource) This method is called by the server immediately after a resource has been created, within the database transaction scope of the operation.Methods inherited from class ca.uhn.fhir.rest.server.interceptor.InterceptorAdapter
handleException, incomingRequestPostProcessed, incomingRequestPreHandled, incomingRequestPreProcessed, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, preProcessOutgoingException, processingCompletedNormallyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.fhir.rest.server.interceptor.IServerInterceptor
handleException, incomingRequestPostProcessed, incomingRequestPreHandled, incomingRequestPreProcessed, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, preProcessOutgoingException, processingCompletedNormally
-
Constructor Details
-
ServerOperationInterceptorAdapter
public ServerOperationInterceptorAdapter()
-
-
Method Details
-
resourceDeleted
public void resourceDeleted(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource) Description copied from interface:IServerOperationInterceptorThis method is called by the server immediately after a resource has been deleted, within the database transaction scope of the operation.If an exception is thrown by an interceptor during this method, the transaction will be rolled back.
- Specified by:
resourceDeletedin interfaceIServerOperationInterceptor
-
resourcePreCreate
public void resourcePreCreate(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource) Description copied from interface:IServerOperationInterceptorThis method is called by the server immediately before a resource is about to be created, within the database transaction scope of the operation.This method may be used to modify the resource
If an exception is thrown by an interceptor during this method, the transaction will be rolled back.
- Specified by:
resourcePreCreatein interfaceIServerOperationInterceptor- Parameters:
theResource- The resource that has been provided by the client as the payload to create. Interceptors may modify this resource, and modifications will affect what is saved in the database.
-
resourcePreDelete
public void resourcePreDelete(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource) Description copied from interface:IServerOperationInterceptorThis method is called by the server immediately before a resource is about to be deleted, within the database transaction scope of the operation.If an exception is thrown by an interceptor during this method, the transaction will be rolled back.
- Specified by:
resourcePreDeletein interfaceIServerOperationInterceptor- Parameters:
theResource- The resource which is about to be deleted
-
resourcePreUpdate
public void resourcePreUpdate(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theOldResource, org.hl7.fhir.instance.model.api.IBaseResource theNewResource) Description copied from interface:IServerOperationInterceptorThis method is called by the server immediately before a resource is about to be updated, within the database transaction scope of the operation.This method may be used to modify the resource
If an exception is thrown by an interceptor during this method, the transaction will be rolled back.
- Specified by:
resourcePreUpdatein interfaceIServerOperationInterceptor- Parameters:
theOldResource- The previous version of the resource, ornullif this is not available. Interceptors should be able to handle situations where this is null, since it is not always convenient or possible to provide a value for this field, but servers should try to populate it.theNewResource- The resource that has been provided by the client as the payload to update to the resource to. Interceptors may modify this resource, and modifications will affect what is saved in the database.
-
resourceCreated
public void resourceCreated(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource) Description copied from interface:IServerOperationInterceptorThis method is called by the server immediately after a resource has been created, within the database transaction scope of the operation.If an exception is thrown by an interceptor during this method, the transaction will be rolled back.
- Specified by:
resourceCreatedin interfaceIServerOperationInterceptor
-
resourceUpdated
@Deprecated public void resourceUpdated(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource) Deprecated.Deprecated in HAPI FHIR 2.6 in favour ofresourceUpdated(RequestDetails, IBaseResource, IBaseResource)- Specified by:
resourceUpdatedin interfaceIServerOperationInterceptor
-
resourceUpdated
public void resourceUpdated(RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theOldResource, org.hl7.fhir.instance.model.api.IBaseResource theNewResource) Description copied from interface:IServerOperationInterceptorThis method is called by the server immediately after a resource has been created, within the database transaction scope of the operation.If an exception is thrown by an interceptor during this method, the transaction will be rolled back.
- Specified by:
resourceUpdatedin interfaceIServerOperationInterceptor- Parameters:
theOldResource- The resource as it was before the update, ornullif this is not available. Interceptors should be able to handle situations where this is null, since it is not always convenient or possible to provide a value for this field, but servers should try to populate it.theNewResource- The resource as it will be after the update
-
resourceUpdated(RequestDetails, IBaseResource, IBaseResource)