Class FHIRRestInteractionBase
- java.lang.Object
-
- org.linuxforhealth.fhir.server.rest.FHIRRestInteractionBase
-
- All Implemented Interfaces:
FHIRRestInteraction
- Direct Known Subclasses:
FHIRRestInteractionDelete
,FHIRRestInteractionHistory
,FHIRRestInteractionIssue
,FHIRRestInteractionRead
,FHIRRestInteractionResource
,FHIRRestInteractionSearch
,FHIRRestInteractionVRead
public abstract class FHIRRestInteractionBase extends java.lang.Object implements FHIRRestInteraction
Base forFHIRRestInteraction
implementations, providing common functions
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FHIRRestInteractionBase(int entryIndex, java.lang.String requestDescription, FHIRUrlParser requestURL)
Protected constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
accept(FHIRRestInteractionVisitor visitor)
Perform this interaction on the given visitor.long
getAccumulatedTime()
int
getEntryIndex()
Get the index for the response bundle entryjava.lang.String
getRequestDescription()
FHIRUrlParser
getRequestURL()
java.util.List<OperationOutcome.Issue>
getWarnings()
protected abstract void
process(FHIRRestInteractionVisitor visitor)
Process this interaction
-
-
-
Constructor Detail
-
FHIRRestInteractionBase
protected FHIRRestInteractionBase(int entryIndex, java.lang.String requestDescription, FHIRUrlParser requestURL)
Protected constructor- Parameters:
entryIndex
-event
-requestDescription
-requestURL
-
-
-
Method Detail
-
accept
public void accept(FHIRRestInteractionVisitor visitor) throws java.lang.Exception
Description copied from interface:FHIRRestInteraction
Perform this interaction on the given visitor. Some implementations may chose to update their internal state based on the interaction.- Specified by:
accept
in interfaceFHIRRestInteraction
- Throws:
java.lang.Exception
-
process
protected abstract void process(FHIRRestInteractionVisitor visitor) throws java.lang.Exception
Process this interaction- Parameters:
visitor
-- Throws:
java.lang.Exception
-
getEntryIndex
public int getEntryIndex()
Description copied from interface:FHIRRestInteraction
Get the index for the response bundle entry- Specified by:
getEntryIndex
in interfaceFHIRRestInteraction
- Returns:
-
getRequestDescription
public java.lang.String getRequestDescription()
- Returns:
- the requestDescription
-
getAccumulatedTime
public long getAccumulatedTime()
- Returns:
- the accumulatedTime
-
getRequestURL
public FHIRUrlParser getRequestURL()
- Returns:
- the requestURL
-
getWarnings
public java.util.List<OperationOutcome.Issue> getWarnings()
- Returns:
- the warnings list
-
-