Class FHIRRestInteractionResource
- java.lang.Object
-
- org.linuxforhealth.fhir.server.rest.FHIRRestInteractionBase
-
- org.linuxforhealth.fhir.server.rest.FHIRRestInteractionResource
-
- All Implemented Interfaces:
FHIRRestInteraction
- Direct Known Subclasses:
FHIRRestInteractionCreate
,FHIRRestInteractionInvoke
,FHIRRestInteractionPatch
,FHIRRestInteractionUpdate
,FHIRRestInteractionValidationResponse
public abstract class FHIRRestInteractionResource extends FHIRRestInteractionBase
Base for resource-orientedFHIRRestInteraction
implementations which include a validationResponseEntry.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FHIRRestInteractionResource(int entryIndex, FHIRPersistenceEvent event, Resource newResource, Bundle.Entry validationResponseEntry, java.lang.String requestDescription, FHIRUrlParser requestURL)
Protected constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FHIRPersistenceEvent
getEvent()
Resource
getNewResource()
Get the updated resource, or if null, the original resource.PayloadPersistenceResponse
getOffloadResponse()
Resource
getPrevResource()
Get the previous resourceBundle.Entry
getValidationResponseEntry()
void
setNewResource(Resource resource)
Setter for updatedResourcevoid
setOffloadResponse(PayloadPersistenceResponse offloadResponse)
void
setPrevResource(Resource prevResource)
Setter for prevResource-
Methods inherited from class org.linuxforhealth.fhir.server.rest.FHIRRestInteractionBase
accept, getAccumulatedTime, getEntryIndex, getRequestDescription, getRequestURL, getWarnings, process
-
-
-
-
Constructor Detail
-
FHIRRestInteractionResource
protected FHIRRestInteractionResource(int entryIndex, FHIRPersistenceEvent event, Resource newResource, Bundle.Entry validationResponseEntry, java.lang.String requestDescription, FHIRUrlParser requestURL)
Protected constructor- Parameters:
entryIndex
-event
-newResource
-validationResponseEntry
-requestDescription
-requestURL
-
-
-
Method Detail
-
getValidationResponseEntry
public Bundle.Entry getValidationResponseEntry()
- Returns:
- the validationResponseEntry
-
setNewResource
public void setNewResource(Resource resource)
Setter for updatedResource- Parameters:
resource
-
-
getNewResource
public Resource getNewResource()
Get the updated resource, or if null, the original resource.- Returns:
- the most recent instance of the resource
-
setPrevResource
public void setPrevResource(Resource prevResource)
Setter for prevResource- Parameters:
prevResource
-
-
getPrevResource
public Resource getPrevResource()
Get the previous resource- Returns:
-
getEvent
public FHIRPersistenceEvent getEvent()
- Returns:
- the event
-
getOffloadResponse
public PayloadPersistenceResponse getOffloadResponse()
- Returns:
- the offloadResponse
-
setOffloadResponse
public void setOffloadResponse(PayloadPersistenceResponse offloadResponse)
- Parameters:
offloadResponse
- the offloadResponse to set
-
-